Class: SpreeDelhivery::ShipmentTracker::Result

Inherits:
Struct
  • Object
show all
Defined in:
app/services/spree_delhivery/shipment_tracker.rb

Overview

Simple result object pattern

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



4
5
6
# File 'app/services/spree_delhivery/shipment_tracker.rb', line 4

def data
  @data
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of success?



4
5
6
# File 'app/services/spree_delhivery/shipment_tracker.rb', line 4

def success?
  @success?
end