Class: T90X::Round

Inherits:
Object
  • Object
show all
Defined in:
lib/t90x/round.rb,
lib/t90x/rounds/type.rb,
lib/t90x/rounds/days_list.rb

Defined Under Namespace

Classes: DaysList, Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/t90x/round.rb', line 3

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/t90x/round.rb', line 4

def type
  @type
end

Instance Method Details

#daysObject



11
12
13
# File 'lib/t90x/round.rb', line 11

def days
  @days ||= DaysList.new(@type).days
end