Class: SolidusLegacyPromotions::Migrations::PromotionWithCodeHandlers::Base
- Inherits:
-
Object
- Object
- SolidusLegacyPromotions::Migrations::PromotionWithCodeHandlers::Base
- Defined in:
- lib/solidus_legacy_promotions/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.
15 16 17 18 |
# File 'lib/solidus_legacy_promotions/migrations/promotions_with_code_handlers.rb', line 15 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.
13 14 15 |
# File 'lib/solidus_legacy_promotions/migrations/promotions_with_code_handlers.rb', line 13 def migration_context @migration_context end |
#promotions ⇒ Object (readonly)
Returns the value of attribute promotions.
13 14 15 |
# File 'lib/solidus_legacy_promotions/migrations/promotions_with_code_handlers.rb', line 13 def promotions @promotions end |