Class: AxiomusApi::StatusResponse::PostStatus
- Inherits:
-
Object
- Object
- AxiomusApi::StatusResponse::PostStatus
- Defined in:
- lib/axiomus_api/response/status_response.rb
Instance Attribute Summary collapse
-
#postprice ⇒ Object
Returns the value of attribute postprice.
-
#tracking ⇒ Object
Returns the value of attribute tracking.
Instance Method Summary collapse
-
#initialize(node) ⇒ PostStatus
constructor
A new instance of PostStatus.
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
#postprice ⇒ Object
Returns the value of attribute postprice.
28 29 30 |
# File 'lib/axiomus_api/response/status_response.rb', line 28 def postprice @postprice end |
#tracking ⇒ Object
Returns the value of attribute tracking.
27 28 29 |
# File 'lib/axiomus_api/response/status_response.rb', line 27 def tracking @tracking end |