Class: YFantasy::Player::DraftAnalysis
- Inherits:
-
BaseSubresource
- Object
- BaseSubresource
- YFantasy::Player::DraftAnalysis
- Defined in:
- lib/y_fantasy/resources/player/draft_analysis.rb
Overview
Draft statistics for a player in Yahoo Fantasy Sports
Instance Attribute Summary collapse
-
#average_cost ⇒ Float
readonly
The average cost of this player in auction drafts.
-
#average_pick ⇒ Float
readonly
The average pick used to draft this player.
-
#average_round ⇒ Float
readonly
The player’s average draft round.
-
#percent_drafted ⇒ Float
readonly
The percentage of drafts in which this player was selected.
Method Summary
Methods inherited from BaseSubresource
dependent?, find, resource_name
Methods included from Subresourceable
Instance Attribute Details
#average_cost ⇒ Float (readonly)
Returns the average cost of this player in auction drafts.
11 |
# File 'lib/y_fantasy/resources/player/draft_analysis.rb', line 11 option :average_cost, type: ->(v) { Transformations::T.floatize(v) } |
#average_pick ⇒ Float (readonly)
Returns the average pick used to draft this player.
15 |
# File 'lib/y_fantasy/resources/player/draft_analysis.rb', line 15 option :average_pick, type: ->(v) { Transformations::T.floatize(v) } |
#average_round ⇒ Float (readonly)
Returns the player’s average draft round.
19 |
# File 'lib/y_fantasy/resources/player/draft_analysis.rb', line 19 option :average_round, type: ->(v) { Transformations::T.floatize(v) } |
#percent_drafted ⇒ Float (readonly)
Returns the percentage of drafts in which this player was selected.
23 |
# File 'lib/y_fantasy/resources/player/draft_analysis.rb', line 23 option :percent_drafted, type: ->(v) { Transformations::T.floatize(v) * 100 } |