class AxiomusApi::RegionsResponse::Region

Attributes

code[RW]
courier[RW]
name[RW]
pickup[RW]

Public Class Methods

new(node) click to toggle source
# File lib/axiomus_api/response/regions_response.rb, line 32
def initialize(node)
  @code = node.xpath('@region_code').text
  @name = node.xpath('@name').text
  @courier = node.xpath('courier/city').map do |n|
    City.new(n)
  end

  @pickup = node.xpath('pickup/office').map do |n|
    Office.new(n)
  end
end