Class: YFantasy::RosterPosition
- Inherits:
-
BaseSubresource
- Object
- BaseSubresource
- YFantasy::RosterPosition
- Defined in:
- lib/y_fantasy/resources/shared_subresources/roster_position.rb
Overview
Reprsents a Yahoo Fantasy roster position
Instance Attribute Summary collapse
-
#abbreviation ⇒ String
readonly
The position abbreviation.
-
#count ⇒ Integer
readonly
The number of this position type allowed on a roster.
-
#display_name ⇒ String
readonly
The position display name.
-
#is_bench ⇒ Boolean
readonly
Whether this position is a bench position.
-
#is_starting_position ⇒ Boolean
readonly
Whether this position is a starting position.
-
#position ⇒ String
readonly
The position name (e.g., “QB”).
-
#position_type ⇒ String
readonly
The position type (e.g., “O”, “DT”, “K”, “BN”).
Method Summary
Methods inherited from BaseSubresource
dependent?, find, resource_name
Methods included from Subresourceable
Instance Attribute Details
#abbreviation ⇒ String (readonly)
Returns the position abbreviation.
16 |
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 16 option :abbreviation, optional: true |
#count ⇒ Integer (readonly)
Returns 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_name ⇒ String (readonly)
Returns the position display name.
20 |
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 20 option :display_name, optional: true |
#is_bench ⇒ Boolean (readonly)
Returns 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_position ⇒ Boolean (readonly)
Returns 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 |
#position ⇒ String (readonly)
Returns the position name (e.g., “QB”).
10 |
# File 'lib/y_fantasy/resources/shared_subresources/roster_position.rb', line 10 option :position |
#position_type ⇒ String (readonly)
Returns 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 |