Class: Sports::Round
- Inherits:
-
Object
- Object
- Sports::Round
- Defined in:
- lib/sports/structs/round.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#knockout ⇒ Object
readonly
Returns the value of attribute knockout.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#num ⇒ Object
note: make read & writable - why? why not?.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(name:, num: nil, start_date: nil, end_date: nil, knockout: false, auto: true) ⇒ Round
constructor
A new instance of Round.
Constructor Details
#initialize(name:, num: nil, start_date: nil, end_date: nil, knockout: false, auto: true) ⇒ Round
Returns a new instance of Round.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/sports/structs/round.rb', line 7 def initialize( name:, num: nil, start_date: nil, end_date: nil, knockout: false, auto: true ) @name = name @num = num @start_date = start_date @end_date = end_date @knockout = knockout @auto = auto # auto-created (inline reference/header without proper definition before) end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
4 5 6 |
# File 'lib/sports/structs/round.rb', line 4 def end_date @end_date end |
#knockout ⇒ Object (readonly)
Returns the value of attribute knockout.
4 5 6 |
# File 'lib/sports/structs/round.rb', line 4 def knockout @knockout end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sports/structs/round.rb', line 4 def name @name end |
#num ⇒ Object
note: make read & writable - why? why not?
5 6 7 |
# File 'lib/sports/structs/round.rb', line 5 def num @num end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/sports/structs/round.rb', line 4 def start_date @start_date end |