Class: FitnessGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/fitness_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(plan_type) ⇒ FitnessGenerator

Returns a new instance of FitnessGenerator.



8
9
10
# File 'lib/fitness_generator.rb', line 8

def initialize(plan_type)
    @plan_type = plan_type
end

Instance Attribute Details

#plan_typeObject

Returns the value of attribute plan_type.



6
7
8
# File 'lib/fitness_generator.rb', line 6

def plan_type
  @plan_type
end

Instance Method Details

#get_planObject



12
13
14
# File 'lib/fitness_generator.rb', line 12

def get_plan
    @plan_type.generate_fitness
end