Class: SportsDataApi::Ncaafb::PollTeam
- Inherits:
-
Object
- Object
- SportsDataApi::Ncaafb::PollTeam
- Defined in:
- lib/sports_data_api/ncaafb/poll_team.rb
Instance Attribute Summary collapse
-
#fp_votes ⇒ Object
readonly
Returns the value of attribute fp_votes.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#losses ⇒ Object
readonly
Returns the value of attribute losses.
-
#market ⇒ Object
readonly
Returns the value of attribute market.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#ties ⇒ Object
readonly
Returns the value of attribute ties.
-
#wins ⇒ Object
readonly
Returns the value of attribute wins.
Instance Method Summary collapse
-
#initialize(poll_team_hash) ⇒ PollTeam
constructor
A new instance of PollTeam.
Constructor Details
#initialize(poll_team_hash) ⇒ PollTeam
Returns a new instance of PollTeam.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 5 def initialize(poll_team_hash) @id = poll_team_hash['id'] @name = poll_team_hash['name'] @rank = poll_team_hash['rank'] @market = poll_team_hash['market'] @points = poll_team_hash['points'] @fp_votes = poll_team_hash['fp_votes'] @wins = poll_team_hash['wins'] @losses = poll_team_hash['losses'] @ties = poll_team_hash['ties'] end |
Instance Attribute Details
#fp_votes ⇒ Object (readonly)
Returns the value of attribute fp_votes.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def fp_votes @fp_votes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def id @id end |
#losses ⇒ Object (readonly)
Returns the value of attribute losses.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def losses @losses end |
#market ⇒ Object (readonly)
Returns the value of attribute market.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def market @market end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def name @name end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def points @points end |
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def rank @rank end |
#ties ⇒ Object (readonly)
Returns the value of attribute ties.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def ties @ties end |
#wins ⇒ Object (readonly)
Returns the value of attribute wins.
4 5 6 |
# File 'lib/sports_data_api/ncaafb/poll_team.rb', line 4 def wins @wins end |