Class: Cb::Models::Resumes::Relocation
- Inherits:
-
ApiResponseModel
- Object
- ApiResponseModel
- Cb::Models::Resumes::Relocation
- Defined in:
- lib/cb/models/implementations/resumes/relocation.rb
Instance Attribute Summary collapse
-
#admin_area ⇒ Object
Returns the value of attribute admin_area.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
Attributes inherited from ApiResponseModel
Instance Method Summary collapse
Methods inherited from ApiResponseModel
Constructor Details
This class inherits a constructor from Cb::Models::ApiResponseModel
Instance Attribute Details
#admin_area ⇒ Object
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 |
#city ⇒ Object
Returns the value of attribute city.
15 16 17 |
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 15 def city @city end |
#country_code ⇒ Object
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_fields ⇒ Object
23 24 25 |
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 23 def required_fields %w(city adminArea countryCode) end |
#set_model_properties ⇒ Object
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 |