Class: Fantasydata::PlayerDetail

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

#activeObject (readonly)

Returns the value of attribute active.



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

def active
  @active
end

#ageObject (readonly)

Returns the value of attribute age.



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

def age
  @age
end

#average_draft_positionObject (readonly)

Returns the value of attribute average_draft_position.



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

def average_draft_position
  @average_draft_position
end

#birth_dateObject (readonly)

Returns the value of attribute birth_date.



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

def birth_date
  @birth_date
end

#birth_date_stringObject (readonly)

Returns the value of attribute birth_date_string.



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

def birth_date_string
  @birth_date_string
end

#bye_weekObject (readonly)

Returns the value of attribute bye_week.



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

def bye_week
  @bye_week
end

#collegeObject (readonly)

Returns the value of attribute college.



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

def college
  @college
end

#college_draft_pickObject (readonly)

Returns the value of attribute college_draft_pick.



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

def college_draft_pick
  @college_draft_pick
end

#college_draft_roundObject (readonly)

Returns the value of attribute college_draft_round.



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

def college_draft_round
  @college_draft_round
end

#college_draft_teamObject (readonly)

Returns the value of attribute college_draft_team.



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

def college_draft_team
  @college_draft_team
end

#college_draft_yearObject (readonly)

Returns the value of attribute college_draft_year.



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

def college_draft_year
  @college_draft_year
end

#current_statusObject (readonly)

Returns the value of attribute current_status.



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

def current_status
  @current_status
end

#current_teamObject (readonly)

Returns the value of attribute current_team.



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

def current_team
  @current_team
end

#depth_display_orderObject (readonly)

Returns the value of attribute depth_display_order.



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

def depth_display_order
  @depth_display_order
end

#depth_orderObject (readonly)

Returns the value of attribute depth_order.



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

def depth_order
  @depth_order
end

#depth_positionObject (readonly)

Returns the value of attribute depth_position.



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

def depth_position
  @depth_position
end

#depth_position_categoryObject (readonly)

Returns the value of attribute depth_position_category.



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

def depth_position_category
  @depth_position_category
end

#experienceObject (readonly)

Returns the value of attribute experience.



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

def experience
  @experience
end

#experience_stringObject (readonly)

Returns the value of attribute experience_string.



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

def experience_string
  @experience_string
end

#fantasy_positionObject (readonly)

Returns the value of attribute fantasy_position.



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

def fantasy_position
  @fantasy_position
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#heightObject (readonly)

Returns the value of attribute height.



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

def height
  @height
end

#height_feetObject (readonly)

Returns the value of attribute height_feet.



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

def height_feet
  @height_feet
end

#height_inchesObject (readonly)

Returns the value of attribute height_inches.



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

def height_inches
  @height_inches
end

#is_undrafted_free_agentObject (readonly)

Returns the value of attribute is_undrafted_free_agent.



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

def is_undrafted_free_agent
  @is_undrafted_free_agent
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



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

def number
  @number
end

#photo_urlObject (readonly)

Returns the value of attribute photo_url.



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

def photo_url
  @photo_url
end

#player_idObject (readonly)

Returns the value of attribute player_id.



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

def player_id
  @player_id
end

#positionObject (readonly)

Returns the value of attribute position.



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

def position
  @position
end

#position_categoryObject (readonly)

Returns the value of attribute position_category.



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

def position_category
  @position_category
end

#short_nameObject (readonly)

Returns the value of attribute short_name.



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

def short_name
  @short_name
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#teamObject (readonly)

Returns the value of attribute team.



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

def team
  @team
end

#upcoming_game_opponentObject (readonly)

Returns the value of attribute upcoming_game_opponent.



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

def upcoming_game_opponent
  @upcoming_game_opponent
end

#upcoming_game_weekObject (readonly)

Returns the value of attribute upcoming_game_week.



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

def upcoming_game_week
  @upcoming_game_week
end

#upcoming_opponent_position_rankObject (readonly)

Returns the value of attribute upcoming_opponent_position_rank.



5
6
7
# File 'lib/fantasydata/player_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/player_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/player_detail.rb', line 5

def upcoming_salary
  @upcoming_salary
end

#weightObject (readonly)

Returns the value of attribute weight.



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

def weight
  @weight
end

Instance Method Details

#latest_newsObject



22
23
24
# File 'lib/fantasydata/player_detail.rb', line 22

def latest_news
  @latest_news ||= map_collection(Fantasydata::News, :latest_news)
end

#season_statsFantasydata::PlayerSeasonStat



18
19
20
# File 'lib/fantasydata/player_detail.rb', line 18

def season_stats
  @season_stats ||= Fantasydata::PlayerSeasonStat.new(@attrs[:player_season])
end