Class: Cb::Models::CountryCode

Inherits:
ApiResponseModel show all
Defined in:
lib/cb/models/implementations/resumes/country_code.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

#codeObject

Returns the value of attribute code.



14
15
16
# File 'lib/cb/models/implementations/resumes/country_code.rb', line 14

def code
  @code
end

Instance Method Details

#required_fieldsObject



20
21
22
# File 'lib/cb/models/implementations/resumes/country_code.rb', line 20

def required_fields
  ['CountryCode']
end

#set_model_propertiesObject



16
17
18
# File 'lib/cb/models/implementations/resumes/country_code.rb', line 16

def set_model_properties
  @code = api_response['CountryCode']
end