Class: Edi::Amazon::ReturnsReportProcessor::Result
- Inherits:
-
Data
- Object
- Data
- Edi::Amazon::ReturnsReportProcessor::Result
- Defined in:
- app/services/edi/amazon/returns_report_processor.rb
Overview
Value object: per-log processing counters returned by #process.
Instance Attribute Summary collapse
-
#duplicates_skipped ⇒ Object
readonly
Returns the value of attribute duplicates_skipped.
-
#items_upgraded ⇒ Object
readonly
Returns the value of attribute items_upgraded.
-
#notes_written ⇒ Object
readonly
Returns the value of attribute notes_written.
-
#quarantined_rows ⇒ Object
readonly
Returns the value of attribute quarantined_rows.
-
#rows_matched ⇒ Object
readonly
Returns the value of attribute rows_matched.
-
#rows_processed ⇒ Object
readonly
Returns the value of attribute rows_processed.
-
#rows_quarantined ⇒ Object
readonly
Returns the value of attribute rows_quarantined.
-
#rows_unmatched ⇒ Object
readonly
Returns the value of attribute rows_unmatched.
Instance Method Summary collapse
-
#initialize(rows_processed: 0, rows_matched: 0, rows_unmatched: 0, rows_quarantined: 0, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0, quarantined_rows: []) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(rows_processed: 0, rows_matched: 0, rows_unmatched: 0, rows_quarantined: 0, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0, quarantined_rows: []) ⇒ Result
Returns a new instance of Result.
41 42 43 44 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 41 def initialize(rows_processed: 0, rows_matched: 0, rows_unmatched: 0, rows_quarantined: 0, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0, quarantined_rows: []) super end |
Instance Attribute Details
#duplicates_skipped ⇒ Object (readonly)
Returns the value of attribute duplicates_skipped
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def duplicates_skipped @duplicates_skipped end |
#items_upgraded ⇒ Object (readonly)
Returns the value of attribute items_upgraded
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def items_upgraded @items_upgraded end |
#notes_written ⇒ Object (readonly)
Returns the value of attribute notes_written
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def notes_written @notes_written end |
#quarantined_rows ⇒ Object (readonly)
Returns the value of attribute quarantined_rows
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def quarantined_rows @quarantined_rows end |
#rows_matched ⇒ Object (readonly)
Returns the value of attribute rows_matched
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def rows_matched @rows_matched end |
#rows_processed ⇒ Object (readonly)
Returns the value of attribute rows_processed
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def rows_processed @rows_processed end |
#rows_quarantined ⇒ Object (readonly)
Returns the value of attribute rows_quarantined
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def rows_quarantined @rows_quarantined end |
#rows_unmatched ⇒ Object (readonly)
Returns the value of attribute rows_unmatched
31 32 33 |
# File 'app/services/edi/amazon/returns_report_processor.rb', line 31 def rows_unmatched @rows_unmatched end |