Class: YFantasy::Group::Settings
- Inherits:
-
BaseSubresource
- Object
- BaseSubresource
- YFantasy::Group::Settings
- Defined in:
- lib/y_fantasy/resources/group/settings.rb
Overview
Settings for a Yahoo NFL Survival Group
Constant Summary collapse
- DEADLINE_1_DESC =
"5 minutes before the first game of each week"- DEADLINE_2_DESC =
"Sunday at 1:00 PM EST"
Instance Attribute Summary collapse
- #commissioner_note ⇒ String readonly
- #deadline ⇒ Integer readonly
-
#end_week ⇒ Integer
readonly
The group end week.
-
#max_strikes ⇒ Integer
readonly
The total number of strikes (incorrect picks) allowed.
-
#start_week ⇒ Integer
readonly
The group start week.
- #two_pick_start_week ⇒ Integer readonly
-
#use_playoff_weeks ⇒ Boolean
readonly
Whether or not the group uses playoff weeks.
Instance Method Summary collapse
-
#deadline_desc ⇒ Object
:nocov:.
Methods inherited from BaseSubresource
dependent?, find, resource_name
Methods included from Subresourceable
Instance Attribute Details
#commissioner_note ⇒ String (readonly)
38 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 38 option :commissioner_note |
#deadline ⇒ Integer (readonly)
30 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 30 option :deadline, type: Types::Coercible::Integer |
#end_week ⇒ Integer (readonly)
Returns the group end week.
18 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 18 option :end_week, type: Types::Coercible::Integer |
#max_strikes ⇒ Integer (readonly)
Returns the total number of strikes (incorrect picks) allowed.
22 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 22 option :max_strikes, type: Types::Coercible::Integer |
#start_week ⇒ Integer (readonly)
Returns the group start week.
14 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 14 option :start_week, type: Types::Coercible::Integer |
#two_pick_start_week ⇒ Integer (readonly)
34 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 34 option :two_pick_start_week, type: Types::Coercible::Integer |
#use_playoff_weeks ⇒ Boolean (readonly)
Returns whether or not the group uses playoff weeks.
26 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 26 option :use_playoff_weeks, type: Types::Params::Bool |
Instance Method Details
#deadline_desc ⇒ Object
:nocov:
43 44 45 46 47 48 49 |
# File 'lib/y_fantasy/resources/group/settings.rb', line 43 def deadline_desc if deadline == 1 DEADLINE_1_DESC elsif deadline == 2 DEADLINE_2_DESC end end |