Class: BulkProcessor::CSVProcessor::Result
- Inherits:
-
Object
- Object
- BulkProcessor::CSVProcessor::Result
- Defined in:
- lib/bulk_processor/csv_processor/result.rb
Overview
A container for messages generated by processing that need to be passed back to the handler.
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#primary_attributes ⇒ Object
readonly
Returns the value of attribute primary_attributes.
-
#row_num ⇒ Object
readonly
Returns the value of attribute row_num.
Instance Method Summary collapse
-
#initialize(messages:, successful:, row_num: nil, primary_attributes: nil) ⇒ Result
constructor
A new instance of Result.
- #successful? ⇒ Boolean
Constructor Details
#initialize(messages:, successful:, row_num: nil, primary_attributes: nil) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 |
# File 'lib/bulk_processor/csv_processor/result.rb', line 8 def initialize(messages:, successful:, row_num: nil, primary_attributes: nil) = @successful = successful @row_num = row_num @primary_attributes = primary_attributes end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
6 7 8 |
# File 'lib/bulk_processor/csv_processor/result.rb', line 6 def end |
#primary_attributes ⇒ Object (readonly)
Returns the value of attribute primary_attributes.
6 7 8 |
# File 'lib/bulk_processor/csv_processor/result.rb', line 6 def primary_attributes @primary_attributes end |
#row_num ⇒ Object (readonly)
Returns the value of attribute row_num.
6 7 8 |
# File 'lib/bulk_processor/csv_processor/result.rb', line 6 def row_num @row_num end |
Instance Method Details
#successful? ⇒ Boolean
15 16 17 |
# File 'lib/bulk_processor/csv_processor/result.rb', line 15 def successful? @successful end |