Class: SportsDataApi::Ncaafb::PollTeam

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_data_api/ncaafb/poll_team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_votesObject (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

#idObject (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

#lossesObject (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

#marketObject (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

#nameObject (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

#pointsObject (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

#rankObject (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

#tiesObject (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

#winsObject (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