Class: AxiomusApi::StatusListResponse::Okey

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_node) ⇒ Okey

Returns a new instance of Okey.



13
14
15
16
17
18
19
20
21
# File 'lib/axiomus_api/response/status_list_response.rb', line 13

def initialize(xml_node)
  @id = xml_node.xpath('@id').text
  @status_code = xml_node.xpath('@status_code').text
  @status_name = xml_node.xpath('@status_name').text
  @inner_id = xml_node.xpath('@inner_id').text
  @price = xml_node.xpath('@price').text.to_f
  @customer_price = xml_node.xpath('@customer_price').text.to_f
  @value = xml_node.text
end

Instance Attribute Details

#customer_priceObject

Returns the value of attribute customer_price.



10
11
12
# File 'lib/axiomus_api/response/status_list_response.rb', line 10

def customer_price
  @customer_price
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#inner_idObject

Returns the value of attribute inner_id.



8
9
10
# File 'lib/axiomus_api/response/status_list_response.rb', line 8

def inner_id
  @inner_id
end

#priceObject

Returns the value of attribute price.



9
10
11
# File 'lib/axiomus_api/response/status_list_response.rb', line 9

def price
  @price
end

#status_codeObject

Returns the value of attribute status_code.



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

def status_code
  @status_code
end

#status_nameObject

Returns the value of attribute status_name.



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

def status_name
  @status_name
end

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/axiomus_api/response/status_list_response.rb', line 11

def value
  @value
end