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_score ⇒ Object (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_overtime ⇒ Object (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_quarter1 ⇒ Object (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_quarter2 ⇒ Object (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_quarter3 ⇒ Object (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_quarter4 ⇒ Object (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_team ⇒ Object (readonly)

Returns the value of attribute away_team.



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

def away_team
  @away_team
end

#channel ⇒ Object (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#date ⇒ Object (readonly)

Returns the value of attribute date.



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

def date
  @date
end

#distance ⇒ Object (readonly)

Returns the value of attribute distance.



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

def distance
  @distance
end

#down ⇒ Object (readonly)

Returns the value of attribute down.



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

def down
  @down
end

#down_and_distance ⇒ Object (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_key ⇒ Object (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_started ⇒ Object (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_started ⇒ Object (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_started ⇒ Object (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_started ⇒ Object (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_started ⇒ Object (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_score ⇒ Object (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_overtime ⇒ Object (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_quarter1 ⇒ Object (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_quarter2 ⇒ Object (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_quarter3 ⇒ Object (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_quarter4 ⇒ Object (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_team ⇒ Object (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_progress ⇒ Object (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_over ⇒ Object (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_overtime ⇒ Object (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_updated ⇒ Object (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_under ⇒ Object (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_spread ⇒ Object (readonly)

Returns the value of attribute point_spread.



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

def point_spread
  @point_spread
end

#possession ⇒ Object (readonly)

Returns the value of attribute possession.



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

def possession
  @possession
end

#quarter ⇒ Object (readonly)

Returns the value of attribute quarter.



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

def quarter
  @quarter
end

#quarter_description ⇒ Object (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_zone ⇒ Object (readonly)

Returns the value of attribute red_zone.



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

def red_zone
  @red_zone
end

#season ⇒ Object (readonly)

Returns the value of attribute season.



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

def season
  @season
end

#season_type ⇒ Object (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_id ⇒ Object (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_remaining ⇒ Object (readonly)

Returns the value of attribute time_remaining.



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

def time_remaining
  @time_remaining
end

#week ⇒ Object (readonly)

Returns the value of attribute week.



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

def week
  @week
end

#yard_line ⇒ Object (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_territory ⇒ Object (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

#stadium ⇒ Object



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

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