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

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

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.



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

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



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def carrier
  @carrier
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def error
  @error
end

#label_idObject (readonly)

Returns the value of attribute label_id

Returns:

  • (Object)

    the current value of label_id



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def label_id
  @label_id
end

#service_typeObject (readonly)

Returns the value of attribute service_type

Returns:

  • (Object)

    the current value of service_type



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def service_type
  @service_type
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def success
  @success
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number

Returns:

  • (Object)

    the current value of tracking_number



29
30
31
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 29

def tracking_number
  @tracking_number
end