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_position ⇒ Object (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_ppr ⇒ Object (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_week ⇒ Object (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

#city ⇒ Object (readonly)

Returns the value of attribute city.



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

def city
  @city
end

#conference ⇒ Object (readonly)

Returns the value of attribute conference.



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

def conference
  @conference
end

#defensive_coordinator ⇒ Object (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_scheme ⇒ Object (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

#division ⇒ Object (readonly)

Returns the value of attribute division.



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

def division
  @division
end

#full_name ⇒ Object (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_coach ⇒ Object (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

#key ⇒ Object (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#name ⇒ Object (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#offensive_coordinator ⇒ Object (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_scheme ⇒ Object (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_id ⇒ Object (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_coach ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_rank ⇒ Object (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_rank ⇒ Object (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_salary ⇒ Object (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

#stadium ⇒ Object



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

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