class SleeperRb::Resources::Draft::Pick::Metadata
Metadata
associated with a specific draft pick.
Attributes
amount[R]
first_name[R]
injury_status[R]
last_name[R]
news_updated[R]
number[R]
player_id[R]
sport[R]
status[R]
team[R]
years_exp[R]
Public Instance Methods
full_name()
click to toggle source
Returns the combined first and last name.
@return [String]
# File lib/sleeper_rb/resources/draft/pick/metadata.rb, line 61 def full_name [first_name, last_name].join(" ") end
position()
click to toggle source
@return [SleeperRb::Utilities::RosterPosition
]
# File lib/sleeper_rb/resources/draft/pick/metadata.rb, line 50 cached_attr :years_exp, :team, :status, :sport, :player_id, :number, :last_name, :injury_status, :first_name, :amount, position: ->(position) { SleeperRb::Utilities::RosterPosition.new(position) }, news_updated: :timestamp