Class: Edi::Walmart::ShipWithWalmart::LabelResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/walmart/ship_with_walmart.rb

Overview

Service object: label result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, label_id: nil, tracking_number: nil, carrier: nil, service_type: nil, error: nil) ⇒ LabelResult

Returns a new instance of LabelResult.



33
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 33

def initialize(success: nil, label_id: nil, tracking_number: nil, carrier: nil, service_type: nil, error: nil) = super

Instance Attribute Details

#carrierObject (readonly)

Returns the value of attribute carrier

Returns:

  • (Object)

    the current value of carrier



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def carrier
  @carrier
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def error
  @error
end

#label_idObject (readonly)

Returns the value of attribute label_id

Returns:

  • (Object)

    the current value of label_id



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def label_id
  @label_id
end

#service_typeObject (readonly)

Returns the value of attribute service_type

Returns:

  • (Object)

    the current value of service_type



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def service_type
  @service_type
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def success
  @success
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number

Returns:

  • (Object)

    the current value of tracking_number



32
33
34
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 32

def tracking_number
  @tracking_number
end