Class: Fantasydata::PlayerDetail
- Defined in:
- lib/fantasydata/player_detail.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#age ⇒ Object
readonly
Returns the value of attribute age.
-
#average_draft_position ⇒ Object
readonly
Returns the value of attribute average_draft_position.
-
#birth_date ⇒ Object
readonly
Returns the value of attribute birth_date.
-
#birth_date_string ⇒ Object
readonly
Returns the value of attribute birth_date_string.
-
#bye_week ⇒ Object
readonly
Returns the value of attribute bye_week.
-
#college ⇒ Object
readonly
Returns the value of attribute college.
-
#college_draft_pick ⇒ Object
readonly
Returns the value of attribute college_draft_pick.
-
#college_draft_round ⇒ Object
readonly
Returns the value of attribute college_draft_round.
-
#college_draft_team ⇒ Object
readonly
Returns the value of attribute college_draft_team.
-
#college_draft_year ⇒ Object
readonly
Returns the value of attribute college_draft_year.
-
#current_status ⇒ Object
readonly
Returns the value of attribute current_status.
-
#current_team ⇒ Object
readonly
Returns the value of attribute current_team.
-
#depth_display_order ⇒ Object
readonly
Returns the value of attribute depth_display_order.
-
#depth_order ⇒ Object
readonly
Returns the value of attribute depth_order.
-
#depth_position ⇒ Object
readonly
Returns the value of attribute depth_position.
-
#depth_position_category ⇒ Object
readonly
Returns the value of attribute depth_position_category.
-
#experience ⇒ Object
readonly
Returns the value of attribute experience.
-
#experience_string ⇒ Object
readonly
Returns the value of attribute experience_string.
-
#fantasy_position ⇒ Object
readonly
Returns the value of attribute fantasy_position.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#height_feet ⇒ Object
readonly
Returns the value of attribute height_feet.
-
#height_inches ⇒ Object
readonly
Returns the value of attribute height_inches.
-
#is_undrafted_free_agent ⇒ Object
readonly
Returns the value of attribute is_undrafted_free_agent.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#photo_url ⇒ Object
readonly
Returns the value of attribute photo_url.
-
#player_id ⇒ Object
readonly
Returns the value of attribute player_id.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#position_category ⇒ Object
readonly
Returns the value of attribute position_category.
-
#short_name ⇒ Object
readonly
Returns the value of attribute short_name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#team ⇒ Object
readonly
Returns the value of attribute team.
-
#upcoming_game_opponent ⇒ Object
readonly
Returns the value of attribute upcoming_game_opponent.
-
#upcoming_game_week ⇒ Object
readonly
Returns the value of attribute upcoming_game_week.
-
#upcoming_opponent_position_rank ⇒ Object
readonly
Returns the value of attribute upcoming_opponent_position_rank.
-
#upcoming_opponent_rank ⇒ Object
readonly
Returns the value of attribute upcoming_opponent_rank.
-
#upcoming_salary ⇒ Object
readonly
Returns the value of attribute upcoming_salary.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
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
#active ⇒ Object (readonly)
Returns the value of attribute active.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def active @active end |
#age ⇒ Object (readonly)
Returns the value of attribute age.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def age @age end |
#average_draft_position ⇒ Object (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_date ⇒ Object (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_string ⇒ Object (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_week ⇒ Object (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 |
#college ⇒ Object (readonly)
Returns the value of attribute college.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def college @college end |
#college_draft_pick ⇒ Object (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_round ⇒ Object (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_team ⇒ Object (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_year ⇒ Object (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_status ⇒ Object (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_team ⇒ Object (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_order ⇒ Object (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_order ⇒ Object (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_position ⇒ Object (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_category ⇒ Object (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 |
#experience ⇒ Object (readonly)
Returns the value of attribute experience.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def experience @experience end |
#experience_string ⇒ Object (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_position ⇒ Object (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_name ⇒ Object (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 |
#height ⇒ Object (readonly)
Returns the value of attribute height.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def height @height end |
#height_feet ⇒ Object (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_inches ⇒ Object (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_agent ⇒ Object (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_name ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def name @name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def number @number end |
#photo_url ⇒ Object (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_id ⇒ Object (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 |
#position ⇒ Object (readonly)
Returns the value of attribute position.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def position @position end |
#position_category ⇒ Object (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_name ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def status @status end |
#team ⇒ Object (readonly)
Returns the value of attribute team.
5 6 7 |
# File 'lib/fantasydata/player_detail.rb', line 5 def team @team end |
#upcoming_game_opponent ⇒ Object (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_week ⇒ Object (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_rank ⇒ Object (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_rank ⇒ Object (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_salary ⇒ Object (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 |
#weight ⇒ Object (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_news ⇒ Object
22 23 24 |
# File 'lib/fantasydata/player_detail.rb', line 22 def latest_news @latest_news ||= map_collection(Fantasydata::News, :latest_news) end |
#season_stats ⇒ Fantasydata::PlayerSeasonStat
18 19 20 |
# File 'lib/fantasydata/player_detail.rb', line 18 def season_stats @season_stats ||= Fantasydata::PlayerSeasonStat.new(@attrs[:player_season]) end |