Class: T90X::Workout::MovesList
- Inherits:
-
Object
- Object
- T90X::Workout::MovesList
- Defined in:
- lib/t90x/workouts/moves_list.rb
Instance Attribute Summary collapse
-
#moves ⇒ Object
readonly
Returns the value of attribute moves.
Instance Method Summary collapse
-
#initialize(name) ⇒ MovesList
constructor
A new instance of MovesList.
Constructor Details
#initialize(name) ⇒ MovesList
Returns a new instance of MovesList.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/t90x/workouts/moves_list.rb', line 6 def initialize(name) @moves = [] case name when Name::CHEST_AND_BACK then create_chest_and_back when Name::PLYOMETRICS then create_plyometrics when Name::SHOULDERS_AND_ARMS then create_shoulders_and_arms when Name::YOGA_X then create_yoga_x when Name::LEGS_AND_BACK then create_legs_and_back when Name::KENPO_X then create_kenpo_x when Name::CORE_SYNERGISTICS then create_core_synergistics when Name::CHEST_SHOULDERS_AND_TRICEPS then create_chest_shoulders_triceps when Name::BACK_AND_BICEPS then create_back_and_biceps when Name::CARDIO_X then create_cardio_x when Name::AB_RIPPER_X then create_ab_ripper_x when Name::REST_STRETCH then create_rest_stretch end @moves end |
Instance Attribute Details
#moves ⇒ Object (readonly)
Returns the value of attribute moves.
4 5 6 |
# File 'lib/t90x/workouts/moves_list.rb', line 4 def moves @moves end |