Class: Sportradar::Api::Football::Ncaafb::Quarter

Inherits:
Quarter
  • Object
show all
Defined in:
lib/sportradar/api/football/ncaafb/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

#drives, #initialize, #update

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_indexObject



15
16
17
# File 'lib/sportradar/api/football/ncaafb/quarter.rb', line 15

def self.period_index
  'number'
end

Instance Method Details

#drive_classObject



7
8
9
# File 'lib/sportradar/api/football/ncaafb/quarter.rb', line 7

def drive_class
  Drive
end

#overtime?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/sportradar/api/football/ncaafb/quarter.rb', line 11

def overtime?
  @number > 4
end