Class: Edi::Walmart::ShipWithWalmart::DiscardResult

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

Overview

Service object: discard result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, error: nil) ⇒ DiscardResult

Returns a new instance of DiscardResult.



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

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



40
41
42
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 40

def error
  @error
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



40
41
42
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 40

def success
  @success
end