Class: AxiomusApi::StatusResponse::PostStatus

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) ⇒ PostStatus

Returns a new instance of PostStatus.



30
31
32
33
# File 'lib/axiomus_api/response/status_response.rb', line 30

def initialize(node)
  @tracking = node.xpath('@tracking').text
  @postprice = node.xpath('@postprice').text.to_f
end

Instance Attribute Details

#postpriceObject

Returns the value of attribute postprice.



28
29
30
# File 'lib/axiomus_api/response/status_response.rb', line 28

def postprice
  @postprice
end

#trackingObject

Returns the value of attribute tracking.



27
28
29
# File 'lib/axiomus_api/response/status_response.rb', line 27

def tracking
  @tracking
end