Class: Solidus::Migrations::PromotionWithCodeHandlers::Base
- Inherits:
-
Object
- Object
- Solidus::Migrations::PromotionWithCodeHandlers::Base
- Defined in:
- lib/solidus/migrations/promotions_with_code_handlers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#migration_context ⇒ Object
readonly
Returns the value of attribute migration_context.
-
#promotions ⇒ Object
readonly
Returns the value of attribute promotions.
Instance Method Summary collapse
-
#initialize(migration_context, promotions) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(migration_context, promotions) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/solidus/migrations/promotions_with_code_handlers.rb', line 13 def initialize(migration_context, promotions) @migration_context = migration_context @promotions = promotions end |
Instance Attribute Details
#migration_context ⇒ Object (readonly)
Returns the value of attribute migration_context.
11 12 13 |
# File 'lib/solidus/migrations/promotions_with_code_handlers.rb', line 11 def migration_context @migration_context end |
#promotions ⇒ Object (readonly)
Returns the value of attribute promotions.
11 12 13 |
# File 'lib/solidus/migrations/promotions_with_code_handlers.rb', line 11 def promotions @promotions end |