Class: Fantasydata::Score

Inherits:
Base
  • Object
show all
Defined in:
lib/fantasydata/score.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from 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.



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

def away_score
  @away_score
end

#away_score_overtimeObject (readonly)

Returns the value of attribute away_score_overtime.



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

def away_score_overtime
  @away_score_overtime
end

#away_score_quarter1Object (readonly)

Returns the value of attribute away_score_quarter1.



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

def away_score_quarter1
  @away_score_quarter1
end

#away_score_quarter2Object (readonly)

Returns the value of attribute away_score_quarter2.



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

def away_score_quarter2
  @away_score_quarter2
end

#away_score_quarter3Object (readonly)

Returns the value of attribute away_score_quarter3.



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

def away_score_quarter3
  @away_score_quarter3
end

#away_score_quarter4Object (readonly)

Returns the value of attribute away_score_quarter4.



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

def away_score_quarter4
  @away_score_quarter4
end

#away_teamObject (readonly)

Returns the value of attribute away_team.



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

def away_team
  @away_team
end

#channelObject (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#dateObject (readonly)

Returns the value of attribute date.



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

def date
  @date
end

#distanceObject (readonly)

Returns the value of attribute distance.



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

def distance
  @distance
end

#downObject (readonly)

Returns the value of attribute down.



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

def down
  @down
end

#down_and_distanceObject (readonly)

Returns the value of attribute down_and_distance.



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

def down_and_distance
  @down_and_distance
end

#game_keyObject (readonly)

Returns the value of attribute game_key.



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

def game_key
  @game_key
end

#has1st_quarter_startedObject (readonly)

Returns the value of attribute has1st_quarter_started.



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

def has1st_quarter_started
  @has1st_quarter_started
end

#has2nd_quarter_startedObject (readonly)

Returns the value of attribute has2nd_quarter_started.



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

def has2nd_quarter_started
  @has2nd_quarter_started
end

#has3rd_quarter_startedObject (readonly)

Returns the value of attribute has3rd_quarter_started.



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

def has3rd_quarter_started
  @has3rd_quarter_started
end

#has4th_quarter_startedObject (readonly)

Returns the value of attribute has4th_quarter_started.



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

def has4th_quarter_started
  @has4th_quarter_started
end

#has_startedObject (readonly)

Returns the value of attribute has_started.



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

def has_started
  @has_started
end

#home_scoreObject (readonly)

Returns the value of attribute home_score.



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

def home_score
  @home_score
end

#home_score_overtimeObject (readonly)

Returns the value of attribute home_score_overtime.



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

def home_score_overtime
  @home_score_overtime
end

#home_score_quarter1Object (readonly)

Returns the value of attribute home_score_quarter1.



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

def home_score_quarter1
  @home_score_quarter1
end

#home_score_quarter2Object (readonly)

Returns the value of attribute home_score_quarter2.



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

def home_score_quarter2
  @home_score_quarter2
end

#home_score_quarter3Object (readonly)

Returns the value of attribute home_score_quarter3.



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

def home_score_quarter3
  @home_score_quarter3
end

#home_score_quarter4Object (readonly)

Returns the value of attribute home_score_quarter4.



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

def home_score_quarter4
  @home_score_quarter4
end

#home_teamObject (readonly)

Returns the value of attribute home_team.



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

def home_team
  @home_team
end

#is_in_progressObject (readonly)

Returns the value of attribute is_in_progress.



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

def is_in_progress
  @is_in_progress
end

#is_overObject (readonly)

Returns the value of attribute is_over.



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

def is_over
  @is_over
end

#is_overtimeObject (readonly)

Returns the value of attribute is_overtime.



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

def is_overtime
  @is_overtime
end

#last_updatedObject (readonly)

Returns the value of attribute last_updated.



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

def last_updated
  @last_updated
end

#over_underObject (readonly)

Returns the value of attribute over_under.



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

def over_under
  @over_under
end

#point_spreadObject (readonly)

Returns the value of attribute point_spread.



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

def point_spread
  @point_spread
end

#possessionObject (readonly)

Returns the value of attribute possession.



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

def possession
  @possession
end

#quarterObject (readonly)

Returns the value of attribute quarter.



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

def quarter
  @quarter
end

#quarter_descriptionObject (readonly)

Returns the value of attribute quarter_description.



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

def quarter_description
  @quarter_description
end

#red_zoneObject (readonly)

Returns the value of attribute red_zone.



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

def red_zone
  @red_zone
end

#seasonObject (readonly)

Returns the value of attribute season.



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

def season
  @season
end

#season_typeObject (readonly)

Returns the value of attribute season_type.



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

def season_type
  @season_type
end

#stadium_idObject (readonly)

Returns the value of attribute stadium_id.



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

def stadium_id
  @stadium_id
end

#time_remainingObject (readonly)

Returns the value of attribute time_remaining.



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

def time_remaining
  @time_remaining
end

#weekObject (readonly)

Returns the value of attribute week.



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

def week
  @week
end

#yard_lineObject (readonly)

Returns the value of attribute yard_line.



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

def yard_line
  @yard_line
end

#yard_line_territoryObject (readonly)

Returns the value of attribute yard_line_territory.



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

def yard_line_territory
  @yard_line_territory
end

Instance Method Details

#stadiumObject



17
18
19
# File 'lib/fantasydata/score.rb', line 17

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