Class: YFantasy::PickemTeam::Pick
- Inherits:
-
BaseSubresource
- Object
- BaseSubresource
- YFantasy::PickemTeam::Pick
- Defined in:
- lib/y_fantasy/resources/pickem_team/pick.rb
Overview
Represents a single team pick in a pickem fantasy contest
Instance Attribute Summary collapse
-
#locked ⇒ Boolean
readonly
Whether the pick is locked and cannot be changed.
-
#result ⇒ Object
readonly
The result of the pick (“correct” or “strike”).
-
#team ⇒ String
readonly
The Yahoo team key (e.g., “nfl.t.1”).
Instance Method Summary collapse
-
#team_details ⇒ Hash
Team details (city, team name, abbreviation) for the pick.
Methods inherited from BaseSubresource
dependent?, find, resource_name
Methods included from Subresourceable
Instance Attribute Details
#locked ⇒ Boolean (readonly)
19 |
# File 'lib/y_fantasy/resources/pickem_team/pick.rb', line 19 option :locked, type: Types::Params::Bool |
#result ⇒ Object (readonly)
15 |
# File 'lib/y_fantasy/resources/pickem_team/pick.rb', line 15 option :result |
#team ⇒ String (readonly)
11 |
# File 'lib/y_fantasy/resources/pickem_team/pick.rb', line 11 option :team |
Instance Method Details
#team_details ⇒ Hash
24 25 26 |
# File 'lib/y_fantasy/resources/pickem_team/pick.rb', line 24 def team_details Ref::Nfl.team(team) end |