Naming minor fix
This commit is contained in:
@@ -4,7 +4,7 @@ class Officing::Residence
|
|||||||
|
|
||||||
attr_accessor :user, :officer, :document_number, :document_type, :year_of_birth
|
attr_accessor :user, :officer, :document_number, :document_type, :year_of_birth
|
||||||
|
|
||||||
before_validation :call_census_api
|
before_validation :retrieve_census_data
|
||||||
|
|
||||||
validates :document_number, presence: true
|
validates :document_number, presence: true
|
||||||
validates :document_type, presence: true
|
validates :document_type, presence: true
|
||||||
@@ -101,7 +101,7 @@ class Officing::Residence
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def call_census_api
|
def retrieve_census_data
|
||||||
@census_api_response = CensusCaller.new.call(document_type, document_number)
|
@census_api_response = CensusCaller.new.call(document_type, document_number)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user