Class: AxiomusApi::RegionsResponse
- Inherits:
-
Object
- Object
- AxiomusApi::RegionsResponse
- Defined in:
- lib/axiomus_api/response/regions_response.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#regions ⇒ Object
Returns the value of attribute regions.
Instance Method Summary collapse
-
#initialize(xml) ⇒ RegionsResponse
constructor
A new instance of RegionsResponse.
Constructor Details
#initialize(xml) ⇒ RegionsResponse
Returns a new instance of RegionsResponse.
47 48 49 50 51 52 53 |
# File 'lib/axiomus_api/response/regions_response.rb', line 47 def initialize(xml) doc = Nokogiri::XML(xml) @regions = doc.xpath('response/region').map do |node| Region.new(node) end end |
Instance Attribute Details
#regions ⇒ Object
Returns the value of attribute regions.
45 46 47 |
# File 'lib/axiomus_api/response/regions_response.rb', line 45 def regions @regions end |