Class: YFantasy::Game::GameWeek
- Inherits:
-
BaseSubresource
- Object
- BaseSubresource
- YFantasy::Game::GameWeek
- Defined in:
- lib/y_fantasy/resources/game/game_week.rb
Overview
Represents a week in a fantasy game schedule
Instance Attribute Summary collapse
-
#display_name ⇒ String
readonly
The week number as a string.
-
#end ⇒ Date
readonly
Week end date.
-
#start ⇒ Date
readonly
Week start date.
-
#week ⇒ Integer
readonly
The week number.
Method Summary
Methods inherited from BaseSubresource
dependent?, find, resource_name
Methods included from Subresourceable
Instance Attribute Details
#display_name ⇒ String (readonly)
Returns the week number as a string.
15 |
# File 'lib/y_fantasy/resources/game/game_week.rb', line 15 option :display_name |
#end ⇒ Date (readonly)
Returns week end date.
23 |
# File 'lib/y_fantasy/resources/game/game_week.rb', line 23 option :end, type: Types::Params::Date |
#start ⇒ Date (readonly)
Returns week start date.
19 |
# File 'lib/y_fantasy/resources/game/game_week.rb', line 19 option :start, type: Types::Params::Date |
#week ⇒ Integer (readonly)
Returns the week number.
11 |
# File 'lib/y_fantasy/resources/game/game_week.rb', line 11 option :week, type: Types::Coercible::Integer |