Class: Cb::Models::LanguageCode

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



4
5
6
# File 'lib/cb/models/implementations/resumes/language_code.rb', line 4

def code
  @code
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/cb/models/implementations/resumes/language_code.rb', line 4

def name
  @name
end

Instance Method Details

#required_fieldsObject



11
12
13
# File 'lib/cb/models/implementations/resumes/language_code.rb', line 11

def required_fields
  ['Code', 'Name']
end

#set_model_propertiesObject



6
7
8
9
# File 'lib/cb/models/implementations/resumes/language_code.rb', line 6

def set_model_properties
  @code = api_response['Code']
  @name = api_response['Name']
end