Class: Fantasydata::Boxscore::Score

Inherits:
Fantasydata::Base show all
Defined in:
lib/fantasydata/boxscore/score.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Fantasydata::Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Fantasydata::Base

Instance Attribute Details

#away_scoreObject (readonly)

Returns the value of attribute away_score.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score
  @away_score
end

#away_score_overtimeObject (readonly)

Returns the value of attribute away_score_overtime.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score_overtime
  @away_score_overtime
end

#away_score_quarter1Object (readonly)

Returns the value of attribute away_score_quarter1.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score_quarter1
  @away_score_quarter1
end

#away_score_quarter2Object (readonly)

Returns the value of attribute away_score_quarter2.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score_quarter2
  @away_score_quarter2
end

#away_score_quarter3Object (readonly)

Returns the value of attribute away_score_quarter3.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score_quarter3
  @away_score_quarter3
end

#away_score_quarter4Object (readonly)

Returns the value of attribute away_score_quarter4.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_score_quarter4
  @away_score_quarter4
end

#away_teamObject (readonly)

Returns the value of attribute away_team.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def away_team
  @away_team
end

#channelObject (readonly)

Returns the value of attribute channel.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def channel
  @channel
end

#dateObject (readonly)

Returns the value of attribute date.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def date
  @date
end

#distanceObject (readonly)

Returns the value of attribute distance.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def distance
  @distance
end

#downObject (readonly)

Returns the value of attribute down.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def down
  @down
end

#down_and_distanceObject (readonly)

Returns the value of attribute down_and_distance.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def down_and_distance
  @down_and_distance
end

#game_keyObject (readonly)

Returns the value of attribute game_key.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def game_key
  @game_key
end

#has1st_quarter_startedObject (readonly)

Returns the value of attribute has1st_quarter_started.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def has1st_quarter_started
  @has1st_quarter_started
end

#has2nd_quarter_startedObject (readonly)

Returns the value of attribute has2nd_quarter_started.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def has2nd_quarter_started
  @has2nd_quarter_started
end

#has3rd_quarter_startedObject (readonly)

Returns the value of attribute has3rd_quarter_started.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def has3rd_quarter_started
  @has3rd_quarter_started
end

#has4th_quarter_startedObject (readonly)

Returns the value of attribute has4th_quarter_started.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def has4th_quarter_started
  @has4th_quarter_started
end

#has_startedObject (readonly)

Returns the value of attribute has_started.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def has_started
  @has_started
end

#home_scoreObject (readonly)

Returns the value of attribute home_score.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score
  @home_score
end

#home_score_overtimeObject (readonly)

Returns the value of attribute home_score_overtime.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score_overtime
  @home_score_overtime
end

#home_score_quarter1Object (readonly)

Returns the value of attribute home_score_quarter1.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score_quarter1
  @home_score_quarter1
end

#home_score_quarter2Object (readonly)

Returns the value of attribute home_score_quarter2.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score_quarter2
  @home_score_quarter2
end

#home_score_quarter3Object (readonly)

Returns the value of attribute home_score_quarter3.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score_quarter3
  @home_score_quarter3
end

#home_score_quarter4Object (readonly)

Returns the value of attribute home_score_quarter4.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_score_quarter4
  @home_score_quarter4
end

#home_teamObject (readonly)

Returns the value of attribute home_team.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def home_team
  @home_team
end

#is_in_progressObject (readonly)

Returns the value of attribute is_in_progress.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def is_in_progress
  @is_in_progress
end

#is_overObject (readonly)

Returns the value of attribute is_over.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def is_over
  @is_over
end

#is_overtimeObject (readonly)

Returns the value of attribute is_overtime.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def is_overtime
  @is_overtime
end

#last_updatedObject (readonly)

Returns the value of attribute last_updated.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def last_updated
  @last_updated
end

#over_underObject (readonly)

Returns the value of attribute over_under.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def over_under
  @over_under
end

#point_spreadObject (readonly)

Returns the value of attribute point_spread.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def point_spread
  @point_spread
end

#possessionObject (readonly)

Returns the value of attribute possession.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def possession
  @possession
end

#quarterObject (readonly)

Returns the value of attribute quarter.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def quarter
  @quarter
end

#quarter_descriptionObject (readonly)

Returns the value of attribute quarter_description.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def quarter_description
  @quarter_description
end

#red_zoneObject (readonly)

Returns the value of attribute red_zone.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def red_zone
  @red_zone
end

#seasonObject (readonly)

Returns the value of attribute season.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def season
  @season
end

#season_typeObject (readonly)

Returns the value of attribute season_type.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def season_type
  @season_type
end

#stadium_detailsObject (readonly)

Returns the value of attribute stadium_details.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def stadium_details
  @stadium_details
end

#stadium_idObject (readonly)

Returns the value of attribute stadium_id.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def stadium_id
  @stadium_id
end

#time_remainingObject (readonly)

Returns the value of attribute time_remaining.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def time_remaining
  @time_remaining
end

#weekObject (readonly)

Returns the value of attribute week.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def week
  @week
end

#yard_lineObject (readonly)

Returns the value of attribute yard_line.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def yard_line
  @yard_line
end

#yard_line_territoryObject (readonly)

Returns the value of attribute yard_line_territory.



6
7
8
# File 'lib/fantasydata/boxscore/score.rb', line 6

def yard_line_territory
  @yard_line_territory
end

Instance Method Details

#stadiumObject



19
20
21
# File 'lib/fantasydata/boxscore/score.rb', line 19

def stadium
  @stadium ||= Fantasydata::Stadium.new(@attrs[:stadium_details])
end