Class: Allorails::Response::OnetimePricingResponse
- Inherits:
-
ApiMappingResponse
- Object
- ApiResponse
- ApiMappingResponse
- Allorails::Response::OnetimePricingResponse
- Defined in:
- lib/allorails/response/onetime_pricing_response.rb
Instance Attribute Summary
Attributes inherited from ApiMappingResponse
Instance Method Summary collapse
-
#countries ⇒ Object
Provides the pricepoints by countries @return (Array) available countries (list of Country object).
-
#creation_date ⇒ Object
Provides the creation date @return (DateTime) Creation date.
-
#customer_country ⇒ Object
Provides the customer country @return (string) customer country.
-
#customer_ip ⇒ Object
Provides the customer ip @return (string) customer ip.
-
#markets ⇒ Object
Provides the pricepoints by markets @return (list) available markets (list of Market object).
-
#regions ⇒ Object
Provides the pricepoints by region @return (Array) available regions (list of Regions object).
-
#website ⇒ Object
Provides the website @return (Website) website.
Methods inherited from ApiMappingResponse
#_verify, attribute_reader, #initialize, node_reader
Methods inherited from ApiResponse
Constructor Details
This class inherits a constructor from Allorails::Response::ApiMappingResponse
Instance Method Details
#countries ⇒ Object
Provides the pricepoints by countries
@return (Array) available countries (list of Country object)
21 22 23 |
# File 'lib/allorails/response/onetime_pricing_response.rb', line 21 def countries xml.css('countries country').map{|c| Allorails::Country.new(c)} end |
#creation_date ⇒ Object
Provides the creation date
@return (DateTime) Creation date
5 |
# File 'lib/allorails/response/onetime_pricing_response.rb', line 5 node_reader :creation_date, DateTime |
#customer_country ⇒ Object
Provides the customer country
@return (string) customer country
13 |
# File 'lib/allorails/response/onetime_pricing_response.rb', line 13 node_reader :customer_country |
#customer_ip ⇒ Object
Provides the customer ip
@return (string) customer ip
9 |
# File 'lib/allorails/response/onetime_pricing_response.rb', line 9 node_reader :customer_ip |
#markets ⇒ Object
Provides the pricepoints by markets
@return (list) available markets (list of Market object)
33 34 35 |
# File 'lib/allorails/response/onetime_pricing_response.rb', line 33 def markets xml.css('markets market').map{|m| Allorails::Market.new(m)} end |