Class: Fantasydata::Schedule
Instance Attribute Summary collapse
-
#away_team ⇒ Object
readonly
Returns the value of attribute away_team.
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#game_key ⇒ Object
readonly
Returns the value of attribute game_key.
-
#home_team ⇒ Object
readonly
Returns the value of attribute home_team.
-
#over_under ⇒ Object
readonly
Returns the value of attribute over_under.
-
#point_spread ⇒ Object
readonly
Returns the value of attribute point_spread.
-
#season ⇒ Object
readonly
Returns the value of attribute season.
-
#season_type ⇒ Object
readonly
Returns the value of attribute season_type.
-
#stadium_id ⇒ Object
readonly
Returns the value of attribute stadium_id.
-
#week ⇒ Object
readonly
Returns the value of attribute week.
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_team ⇒ Object (readonly)
Returns the value of attribute away_team.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def away_team @away_team end |
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def channel @channel end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def date @date end |
#game_key ⇒ Object (readonly)
Returns the value of attribute game_key.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def game_key @game_key end |
#home_team ⇒ Object (readonly)
Returns the value of attribute home_team.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def home_team @home_team end |
#over_under ⇒ Object (readonly)
Returns the value of attribute over_under.
5 6 7 |
# File 'lib/fantasydata/schedule.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/schedule.rb', line 5 def point_spread @point_spread end |
#season ⇒ Object (readonly)
Returns the value of attribute season.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def season @season end |
#season_type ⇒ Object (readonly)
Returns the value of attribute season_type.
5 6 7 |
# File 'lib/fantasydata/schedule.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/schedule.rb', line 5 def stadium_id @stadium_id end |
#week ⇒ Object (readonly)
Returns the value of attribute week.
5 6 7 |
# File 'lib/fantasydata/schedule.rb', line 5 def week @week end |
Instance Method Details
#stadium ⇒ Object
9 10 11 |
# File 'lib/fantasydata/schedule.rb', line 9 def stadium @stadium ||= Fantasydata::Stadium.new(@attrs[:stadium_details]) end |