Class: NbaRb::Period

Inherits:
Object
  • Object
show all
Defined in:
lib/nba_rb/constants.rb

Direct Known Subclasses

EndPeriod, StartPeriod

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.all_quartersObject

Returns the value of attribute all_quarters.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def all_quarters
  @all_quarters
end

.defaultObject

Returns the value of attribute default.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def default
  @default
end

.first_quarterObject

Returns the value of attribute first_quarter.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def first_quarter
  @first_quarter
end

.fourth_quarterObject

Returns the value of attribute fourth_quarter.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def fourth_quarter
  @fourth_quarter
end

.second_quarterObject

Returns the value of attribute second_quarter.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def second_quarter
  @second_quarter
end

.third_quarterObject

Returns the value of attribute third_quarter.



246
247
248
# File 'lib/nba_rb/constants.rb', line 246

def third_quarter
  @third_quarter
end

Instance Method Details

#overtime(n) ⇒ Object



261
262
263
# File 'lib/nba_rb/constants.rb', line 261

def overtime(n)
  str(4 + n)
end