Class: Solidus::Migrations::PromotionWithCodeHandlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus/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.


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

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