Class: Edi::Amazon::ReturnsReportProcessor::RmaMatch

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/amazon/returns_report_processor.rb

Overview

Internal outcome of resolving one row to an RMA.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rma: nil, quarantine: nil) ⇒ RmaMatch

Builds an RMA resolution outcome.

Parameters:

  • rma (Rma, nil) (defaults to: nil)

    the safely resolved RMA.

  • quarantine (Hash, nil) (defaults to: nil)

    metadata explaining an unsafe resolution.



53
# File 'app/services/edi/amazon/returns_report_processor.rb', line 53

def initialize(rma: nil, quarantine: nil) = super

Instance Attribute Details

#quarantineObject (readonly)

Returns the value of attribute quarantine

Returns:

  • (Object)

    the current value of quarantine



48
49
50
# File 'app/services/edi/amazon/returns_report_processor.rb', line 48

def quarantine
  @quarantine
end

#rmaObject (readonly)

Returns the value of attribute rma

Returns:

  • (Object)

    the current value of rma



48
49
50
# File 'app/services/edi/amazon/returns_report_processor.rb', line 48

def rma
  @rma
end