Class: Spree::Imports::RowProcessors::Base
- Inherits:
-
Object
- Object
- Spree::Imports::RowProcessors::Base
- Defined in:
- app/services/spree/imports/row_processors/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#import ⇒ Object
readonly
Returns the value of attribute import.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(row) ⇒ Base
constructor
A new instance of Base.
- #process! ⇒ Object
Constructor Details
#initialize(row) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 |
# File 'app/services/spree/imports/row_processors/base.rb', line 5 def initialize(row) @row = row @import = row.import @attributes = row.to_schema_hash end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
11 12 13 |
# File 'app/services/spree/imports/row_processors/base.rb', line 11 def attributes @attributes end |
#import ⇒ Object (readonly)
Returns the value of attribute import.
11 12 13 |
# File 'app/services/spree/imports/row_processors/base.rb', line 11 def import @import end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
11 12 13 |
# File 'app/services/spree/imports/row_processors/base.rb', line 11 def row @row end |
Instance Method Details
#process! ⇒ Object
13 14 15 |
# File 'app/services/spree/imports/row_processors/base.rb', line 13 def process! raise NotImplementedError, 'Subclasses must implement the process! method' end |