Class: Sportradar::Api::Football::Nfl::Quarter
- Defined in:
- lib/sportradar/api/football/nfl/quarter.rb
Instance Attribute Summary
Attributes inherited from Quarter
#api, #away_points, #home_points, #id, #number, #response, #scoring, #sequence
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Quarter
Methods inherited from Data
#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data
Constructor Details
This class inherits a constructor from Sportradar::Api::Football::Quarter
Class Method Details
.period_index ⇒ Object
15 16 17 |
# File 'lib/sportradar/api/football/nfl/quarter.rb', line 15 def self.period_index 'sequence' end |
Instance Method Details
#drive_class ⇒ Object
7 8 9 |
# File 'lib/sportradar/api/football/nfl/quarter.rb', line 7 def drive_class Drive end |
#overtime? ⇒ Boolean
11 12 13 |
# File 'lib/sportradar/api/football/nfl/quarter.rb', line 11 def overtime? @sequence > 4 end |