Class: YFantasy::RosterPosition

Inherits:
BaseSubresource show all
Defined in:
lib/y_fantasy/resources/shared_subresources/roster_position.rb

Overview

Reprsents a Yahoo Fantasy roster position

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseSubresource

dependent?, find, resource_name

Methods included from Subresourceable

included

Instance Attribute Details

#abbreviationString (readonly)

Returns the position abbreviation.

Returns:

  • (String)

    the position abbreviation



16
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 16

option :abbreviation, optional: true

#countInteger (readonly)

Returns the number of this position type allowed on a roster.

Returns:

  • (Integer)

    the number of this position type allowed on a roster



28
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 28

option :count, optional: true, type: Types::Coercible::Integer

#display_nameString (readonly)

Returns the position display name.

Returns:

  • (String)

    the position display name



20
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 20

option :display_name, optional: true

#is_benchBoolean (readonly)

Returns whether this position is a bench position.

Returns:

  • (Boolean)

    whether this position is a bench position



32
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 32

option :is_bench, optional: true, type: Types::Params::Bool

#is_starting_positionBoolean (readonly)

Returns whether this position is a starting position.

Returns:

  • (Boolean)

    whether this position is a starting position



36
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 36

option :is_starting_position, optional: true, type: Types::Params::Bool

#positionString (readonly)

Returns the position name (e.g., “QB”).

Returns:

  • (String)

    the position name (e.g., “QB”)



10
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 10

option :position

#position_typeString (readonly)

Returns the position type (e.g., “O”, “DT”, “K”, “BN”).

Returns:

  • (String)

    the position type (e.g., “O”, “DT”, “K”, “BN”)



24
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 24

option :position_type, optional: true