Class: Workouts::Workout
- Inherits:
-
Object
- Object
- Workouts::Workout
- Defined in:
- lib/workouts/workout.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#moves ⇒ Object
readonly
Returns the value of attribute moves.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Workout
constructor
A new instance of Workout.
Constructor Details
#initialize(name) ⇒ Workout
Returns a new instance of Workout.
7 8 9 10 11 |
# File 'lib/workouts/workout.rb', line 7 def initialize(name) @name = name @moves = [] load_moves end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/workouts/workout.rb', line 3 def description @description end |
#moves ⇒ Object (readonly)
Returns the value of attribute moves.
5 6 7 |
# File 'lib/workouts/workout.rb', line 5 def moves @moves end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/workouts/workout.rb', line 4 def name @name end |