Class: FitnessGenerator
- Inherits:
-
Object
- Object
- FitnessGenerator
- Defined in:
- lib/fitness_generator.rb
Instance Attribute Summary collapse
-
#plan_type ⇒ Object
Returns the value of attribute plan_type.
Instance Method Summary collapse
- #get_plan ⇒ Object
-
#initialize(plan_type) ⇒ FitnessGenerator
constructor
A new instance of FitnessGenerator.
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_type ⇒ Object
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_plan ⇒ Object
12 13 14 |
# File 'lib/fitness_generator.rb', line 12 def get_plan @plan_type.generate_fitness end |