Class: Fantasydata::TeamDetail

Inherits:
Base
  • Object
show all
Defined in:
lib/fantasydata/team_detail.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

#average_draft_positionObject (readonly)

Returns the value of attribute average_draft_position.



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

def average_draft_position
  @average_draft_position
end

#average_draft_position_pprObject (readonly)

Returns the value of attribute average_draft_position_ppr.



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

def average_draft_position_ppr
  @average_draft_position_ppr
end

#bye_weekObject (readonly)

Returns the value of attribute bye_week.



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

def bye_week
  @bye_week
end

#cityObject (readonly)

Returns the value of attribute city.



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

def city
  @city
end

#conferenceObject (readonly)

Returns the value of attribute conference.



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

def conference
  @conference
end

#defensive_coordinatorObject (readonly)

Returns the value of attribute defensive_coordinator.



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

def defensive_coordinator
  @defensive_coordinator
end

#defensive_schemeObject (readonly)

Returns the value of attribute defensive_scheme.



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

def defensive_scheme
  @defensive_scheme
end

#divisionObject (readonly)

Returns the value of attribute division.



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

def division
  @division
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



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

def full_name
  @full_name
end

#head_coachObject (readonly)

Returns the value of attribute head_coach.



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

def head_coach
  @head_coach
end

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#offensive_coordinatorObject (readonly)

Returns the value of attribute offensive_coordinator.



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

def offensive_coordinator
  @offensive_coordinator
end

#offensive_schemeObject (readonly)

Returns the value of attribute offensive_scheme.



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

def offensive_scheme
  @offensive_scheme
end

#player_idObject (readonly)

Returns the value of attribute player_id.



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

def player_id
  @player_id
end

#special_teams_coachObject (readonly)

Returns the value of attribute special_teams_coach.



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

def special_teams_coach
  @special_teams_coach
end

#stadium_idObject (readonly)

Returns the value of attribute stadium_id.



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

def stadium_id
  @stadium_id
end

#team_idObject (readonly)

Returns the value of attribute team_id.



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

def team_id
  @team_id
end

#upcoming_opponent_position_rankObject (readonly)

Returns the value of attribute upcoming_opponent_position_rank.



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

def upcoming_opponent_position_rank
  @upcoming_opponent_position_rank
end

#upcoming_opponent_rankObject (readonly)

Returns the value of attribute upcoming_opponent_rank.



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

def upcoming_opponent_rank
  @upcoming_opponent_rank
end

#upcoming_salaryObject (readonly)

Returns the value of attribute upcoming_salary.



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

def upcoming_salary
  @upcoming_salary
end

Instance Method Details

#stadiumObject



15
16
17
# File 'lib/fantasydata/team_detail.rb', line 15

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