Class: YFantasy::Player::DraftAnalysis

Inherits:
BaseSubresource show all
Defined in:
lib/y_fantasy/resources/player/draft_analysis.rb

Overview

Draft statistics for a player in Yahoo Fantasy Sports

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseSubresource

dependent?, find, resource_name

Methods included from Subresourceable

included

Instance Attribute Details

#average_costFloat (readonly)

Returns the average cost of this player in auction drafts.

Returns:

  • (Float)

    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_pickFloat (readonly)

Returns the average pick used to draft this player.

Returns:

  • (Float)

    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_roundFloat (readonly)

Returns the player’s average draft round.

Returns:

  • (Float)

    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_draftedFloat (readonly)

Returns the percentage of drafts in which this player was selected.

Returns:

  • (Float)

    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 }