Class: Cb::Models::Resumes::Relocation

Inherits:
ApiResponseModel show all
Defined in:
lib/cb/models/implementations/resumes/relocation.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResponseModel

#api_response

Instance Method Summary collapse

Methods inherited from ApiResponseModel

#initialize

Constructor Details

This class inherits a constructor from Cb::Models::ApiResponseModel

Instance Attribute Details

#admin_areaObject

Returns the value of attribute admin_area.



15
16
17
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 15

def admin_area
  @admin_area
end

#cityObject

Returns the value of attribute city.



15
16
17
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 15

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



15
16
17
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 15

def country_code
  @country_code
end

Instance Method Details

#required_fieldsObject



23
24
25
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 23

def required_fields
  %w(city adminArea countryCode)
end

#set_model_propertiesObject



17
18
19
20
21
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 17

def set_model_properties
  @city = api_response['city']
  @admin_area = api_response['adminArea']
  @country_code = api_response['countryCode']
end