Class: T90X::Round
- Inherits:
-
Object
- Object
- T90X::Round
- Defined in:
- lib/t90x/round.rb,
lib/t90x/rounds/type.rb,
lib/t90x/rounds/days_list.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #days ⇒ Object
-
#initialize(name, type = Round::Type::CLASSIC) ⇒ Round
constructor
A new instance of Round.
Constructor Details
#initialize(name, type = Round::Type::CLASSIC) ⇒ Round
Returns a new instance of Round.
6 7 8 9 |
# File 'lib/t90x/round.rb', line 6 def initialize(name, type = Round::Type::CLASSIC) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/t90x/round.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/t90x/round.rb', line 4 def type @type end |
Instance Method Details
#days ⇒ Object
11 12 13 |
# File 'lib/t90x/round.rb', line 11 def days @days ||= DaysList.new(@type).days end |