Class: Allorails::Country
- Inherits:
-
Base
- Object
- Response::ApiResponse
- Response::ApiMappingResponse
- Base
- Allorails::Country
- Defined in:
- lib/allorails/response/model.rb
Overview
Class providing object mapping of a country item
Instance Attribute Summary
Attributes inherited from Response::ApiMappingResponse
Instance Method Summary collapse
-
#code ⇒ Object
Provides the country code @return (string) country code (two characters).
-
#name ⇒ Object
Provides the country name @return (string) country name.
Methods inherited from Base
Methods inherited from Response::ApiMappingResponse
#_verify, attribute_reader, #initialize, node_reader
Methods inherited from Response::ApiResponse
Constructor Details
This class inherits a constructor from Allorails::Base
Instance Method Details
#code ⇒ Object
Provides the country code
@return (string) country code (two characters)
48 |
# File 'lib/allorails/response/model.rb', line 48 attribute_reader :code |
#name ⇒ Object
Provides the country name
@return (string) country name
52 |
# File 'lib/allorails/response/model.rb', line 52 attribute_reader :name |