Class: NbaRb::Period
- Inherits:
-
Object
- Object
- NbaRb::Period
- Defined in:
- lib/nba_rb/constants.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.all_quarters ⇒ Object
Returns the value of attribute all_quarters.
-
.default ⇒ Object
Returns the value of attribute default.
-
.first_quarter ⇒ Object
Returns the value of attribute first_quarter.
-
.fourth_quarter ⇒ Object
Returns the value of attribute fourth_quarter.
-
.second_quarter ⇒ Object
Returns the value of attribute second_quarter.
-
.third_quarter ⇒ Object
Returns the value of attribute third_quarter.
Instance Method Summary collapse
Class Attribute Details
.all_quarters ⇒ Object
Returns the value of attribute all_quarters.
246 247 248 |
# File 'lib/nba_rb/constants.rb', line 246 def all_quarters @all_quarters end |
.default ⇒ Object
Returns the value of attribute default.
246 247 248 |
# File 'lib/nba_rb/constants.rb', line 246 def default @default end |
.first_quarter ⇒ Object
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_quarter ⇒ Object
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_quarter ⇒ Object
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_quarter ⇒ Object
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 |