Class: RunnersUpdate::Runner
- Inherits:
-
Object
- Object
- RunnersUpdate::Runner
- Defined in:
- lib/runners_update/runner.rb
Overview
ランナークラス
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#splits ⇒ Object
Returns the value of attribute splits.
Instance Method Summary collapse
-
#add_point(name, split, lap, pass) ⇒ Object
ポイントの追加.
-
#initialize(number, name) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(number, name) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 9 |
# File 'lib/runners_update/runner.rb', line 5 def initialize(number, name) @number = number @name = name @splits = [] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/runners_update/runner.rb', line 4 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/runners_update/runner.rb', line 4 def number @number end |
#splits ⇒ Object
Returns the value of attribute splits.
4 5 6 |
# File 'lib/runners_update/runner.rb', line 4 def splits @splits end |