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.



5
6
7
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 5

def admin_area
  @admin_area
end

#cityObject

Returns the value of attribute city.



5
6
7
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 5

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



5
6
7
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 5

def country_code
  @country_code
end

Instance Method Details

#required_fieldsObject



13
14
15
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 13

def required_fields
  ['city', 'adminArea', 'countryCode']
end

#set_model_propertiesObject



7
8
9
10
11
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 7

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