Class: AxiomusApi::StatusResponse::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/axiomus_api/response/status_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Order

Returns a new instance of Order.



9
10
11
12
13
# File 'lib/axiomus_api/response/status_response.rb', line 9

def initialize(node)
  @id = node.xpath('@id').text
  @inner_id = node.xpath('@inner_id').text
  @price = node.xpath('@price').text.to_f
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/axiomus_api/response/status_response.rb', line 5

def id
  @id
end

#inner_idObject

Returns the value of attribute inner_id.



6
7
8
# File 'lib/axiomus_api/response/status_response.rb', line 6

def inner_id
  @inner_id
end

#priceObject

Returns the value of attribute price.



7
8
9
# File 'lib/axiomus_api/response/status_response.rb', line 7

def price
  @price
end