Class: SportsDataApi::Ncaafb::Quarter
- Inherits:
-
Object
- Object
- SportsDataApi::Ncaafb::Quarter
- Defined in:
- lib/sports_data_api/ncaafb/quarter.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#play_by_plays ⇒ Object
readonly
Returns the value of attribute play_by_plays.
Instance Method Summary collapse
-
#initialize(quarter_hash) ⇒ Quarter
constructor
A new instance of Quarter.
Constructor Details
#initialize(quarter_hash) ⇒ Quarter
6 7 8 9 |
# File 'lib/sports_data_api/ncaafb/quarter.rb', line 6 def initialize(quarter_hash) @number = quarter_hash["number"] @play_by_plays = PlayByPlays.new(quarter_hash["pbp"]) end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/quarter.rb', line 4 def number @number end |
#play_by_plays ⇒ Object (readonly)
Returns the value of attribute play_by_plays.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/quarter.rb', line 4 def play_by_plays @play_by_plays end |