Class: Edi::Amazon::ShipWithAmazon::TrackingResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/amazon/ship_with_amazon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, tracking_id: nil, status: nil, event_history: nil, promised_delivery_date: nil, error: nil) ⇒ TrackingResult

Returns a new instance of TrackingResult.



33
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 33

def initialize(success: nil, tracking_id: nil, status: nil, event_history: nil, promised_delivery_date: nil, error: nil) = super

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def error
  @error
end

#event_historyObject (readonly)

Returns the value of attribute event_history

Returns:

  • (Object)

    the current value of event_history



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def event_history
  @event_history
end

#promised_delivery_dateObject (readonly)

Returns the value of attribute promised_delivery_date

Returns:

  • (Object)

    the current value of promised_delivery_date



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def promised_delivery_date
  @promised_delivery_date
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def status
  @status
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def success
  @success
end

#tracking_idObject (readonly)

Returns the value of attribute tracking_id

Returns:

  • (Object)

    the current value of tracking_id



32
33
34
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 32

def tracking_id
  @tracking_id
end