Class: Fantasydata::Schedule

Inherits:
Base
  • Object
show all
Defined in:
lib/fantasydata/schedule.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_teamObject (readonly)

Returns the value of attribute away_team.



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

def away_team
  @away_team
end

#channelObject (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#dateObject (readonly)

Returns the value of attribute date.



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

def date
  @date
end

#game_keyObject (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_teamObject (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_underObject (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_spreadObject (readonly)

Returns the value of attribute point_spread.



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

def point_spread
  @point_spread
end

#seasonObject (readonly)

Returns the value of attribute season.



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

def season
  @season
end

#season_typeObject (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_idObject (readonly)

Returns the value of attribute stadium_id.



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

def stadium_id
  @stadium_id
end

#weekObject (readonly)

Returns the value of attribute week.



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

def week
  @week
end

Instance Method Details

#stadiumObject



9
10
11
# File 'lib/fantasydata/schedule.rb', line 9

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