Class: Allorails::Market
- Inherits:
-
Base
- Object
- Response::ApiResponse
- Response::ApiMappingResponse
- Base
- Allorails::Market
- Defined in:
- lib/allorails/response/model.rb
Overview
Class providing object mapping of a market item
Instance Attribute Summary
Attributes inherited from Response::ApiMappingResponse
Instance Method Summary collapse
-
#country ⇒ Object
Provides the country name @return (string) country name.
-
#country_code ⇒ Object
Provides the country code @return (string) country code (two characters).
-
#pricepoints ⇒ Object
Provides the pricepoints available in this market @return (Array) available pricepoints (list of Pricepoint objects).
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
#country ⇒ Object
Provides the country name
@return (string) country name
82 |
# File 'lib/allorails/response/model.rb', line 82 attribute_reader :country |
#country_code ⇒ Object
Provides the country code
@return (string) country code (two characters)
78 |
# File 'lib/allorails/response/model.rb', line 78 attribute_reader :country_code |
#pricepoints ⇒ Object
Provides the pricepoints available in this market
@return (Array) available pricepoints (list of Pricepoint objects)
86 87 88 |
# File 'lib/allorails/response/model.rb', line 86 def pricepoints xml.css('pricepoint').map{|c| Allorails::Pricepoint.new(c)} end |