Class: Edi::Walmart::ReturnsReportProcessor::Result
- Inherits:
-
Data
- Object
- Data
- Edi::Walmart::ReturnsReportProcessor::Result
- Defined in:
- app/services/edi/walmart/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.
-
#rows_matched ⇒ Object
readonly
Returns the value of attribute rows_matched.
-
#rows_processed ⇒ Object
readonly
Returns the value of attribute rows_processed.
-
#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, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(rows_processed: 0, rows_matched: 0, rows_unmatched: 0, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0) ⇒ Result
Returns a new instance of Result.
35 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 35 def initialize(rows_processed: 0, rows_matched: 0, rows_unmatched: 0, items_upgraded: 0, notes_written: 0, duplicates_skipped: 0) = super |
Instance Attribute Details
#duplicates_skipped ⇒ Object (readonly)
Returns the value of attribute duplicates_skipped
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def duplicates_skipped @duplicates_skipped end |
#items_upgraded ⇒ Object (readonly)
Returns the value of attribute items_upgraded
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def items_upgraded @items_upgraded end |
#notes_written ⇒ Object (readonly)
Returns the value of attribute notes_written
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def notes_written @notes_written end |
#rows_matched ⇒ Object (readonly)
Returns the value of attribute rows_matched
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def rows_matched @rows_matched end |
#rows_processed ⇒ Object (readonly)
Returns the value of attribute rows_processed
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def rows_processed @rows_processed end |
#rows_unmatched ⇒ Object (readonly)
Returns the value of attribute rows_unmatched
28 29 30 |
# File 'app/services/edi/walmart/returns_report_processor.rb', line 28 def rows_unmatched @rows_unmatched end |