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.
5 6 7 |
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 5 def admin_area @admin_area end |
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 5 def city @city end |
#country_code ⇒ Object
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_fields ⇒ Object
13 14 15 |
# File 'lib/cb/models/implementations/resumes/relocation.rb', line 13 def required_fields ['city', 'adminArea', 'countryCode'] end |
#set_model_properties ⇒ Object
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 |