Class: SolidusLegacyPromotions::Migrations::PromotionWithCodeHandlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_legacy_promotions/migrations/promotions_with_code_handlers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_contextObject (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

#promotionsObject (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