Class: Workouts::Move
- Inherits:
-
Object
- Object
- Workouts::Move
- Defined in:
- lib/workouts/move.rb
Instance Attribute Summary collapse
-
#break ⇒ Object
readonly
Returns the value of attribute break.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#reps ⇒ Object
Returns the value of attribute reps.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Move
constructor
A new instance of Move.
Constructor Details
#initialize(options = {}) ⇒ Move
Returns a new instance of Move.
11 12 13 14 15 16 17 18 |
# File 'lib/workouts/move.rb', line 11 def initialize( = {}) @name = [:name] @completed = false @reps = 0 @weight = [:weight] || false @break = [:break] || false end |
Instance Attribute Details
#break ⇒ Object (readonly)
Returns the value of attribute break.
8 9 10 |
# File 'lib/workouts/move.rb', line 8 def break @break end |
#completed ⇒ Object
Returns the value of attribute completed.
3 4 5 |
# File 'lib/workouts/move.rb', line 3 def completed @completed end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/workouts/move.rb', line 4 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/workouts/move.rb', line 9 def name @name end |
#reps ⇒ Object
Returns the value of attribute reps.
5 6 7 |
# File 'lib/workouts/move.rb', line 5 def reps @reps end |
#weight ⇒ Object
Returns the value of attribute weight.
6 7 8 |
# File 'lib/workouts/move.rb', line 6 def weight @weight end |