Class: SpreeDelhivery::ShipmentTracker::Result
- Inherits:
-
Struct
- Object
- Struct
- SpreeDelhivery::ShipmentTracker::Result
- Defined in:
- app/services/spree_delhivery/shipment_tracker.rb
Overview
Simple result object pattern
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#status ⇒ Object
Returns the value of attribute status.
-
#success? ⇒ Object
Returns the value of attribute success?.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
4 5 6 |
# File 'app/services/spree_delhivery/shipment_tracker.rb', line 4 def data @data end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'app/services/spree_delhivery/shipment_tracker.rb', line 4 def status @status end |
#success? ⇒ Object
Returns the value of attribute success?
4 5 6 |
# File 'app/services/spree_delhivery/shipment_tracker.rb', line 4
def success?
@success?
end
|