Class: Edi::Walmart::ShipWithWalmart::CarriersResult
- Inherits:
-
Data
- Object
- Data
- Edi::Walmart::ShipWithWalmart::CarriersResult
- Defined in:
- app/services/edi/walmart/ship_with_walmart.rb
Overview
Result structs for consistent return types
Instance Attribute Summary collapse
-
#carriers ⇒ Object
readonly
Returns the value of attribute carriers.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, carriers: nil, error: nil) ⇒ CarriersResult
constructor
A new instance of CarriersResult.
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
#carriers ⇒ Object (readonly)
Returns the value of attribute carriers
20 21 22 |
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20 def carriers @carriers end |
#error ⇒ Object (readonly)
Returns the value of attribute error
20 21 22 |
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20 def error @error end |
#success ⇒ Object (readonly)
Returns the value of attribute success
20 21 22 |
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 20 def success @success end |