Class: Edi::Walmart::ShipWithWalmart::CarriersResult

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

Overview

Result structs for consistent return types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, carriers: nil, error: nil) ⇒ CarriersResult

Returns a new instance of CarriersResult.



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

def initialize(success: nil, carriers: nil, error: nil) = super

Instance Attribute Details

#carriersObject (readonly)

Returns the value of attribute carriers

Returns:

  • (Object)

    the current value of carriers



20
21
22
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20

def carriers
  @carriers
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



20
21
22
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20

def error
  @error
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



20
21
22
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20

def success
  @success
end