Class: YFantasy::Game::GameWeek

Inherits:
BaseSubresource show all
Defined in:
lib/y_fantasy/resources/game/game_week.rb

Overview

Represents a week in a fantasy game schedule

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseSubresource

dependent?, find, resource_name

Methods included from Subresourceable

included

Instance Attribute Details

#display_nameString (readonly)

Returns the week number as a string.

Returns:

  • (String)

    the week number as a string



15
# File 'lib/y_fantasy/resources/game/game_week.rb', line 15

option :display_name

#endDate (readonly)

Returns week end date.

Returns:

  • (Date)

    week end date



23
# File 'lib/y_fantasy/resources/game/game_week.rb', line 23

option :end, type: Types::Params::Date

#startDate (readonly)

Returns week start date.

Returns:

  • (Date)

    week start date



19
# File 'lib/y_fantasy/resources/game/game_week.rb', line 19

option :start, type: Types::Params::Date

#weekInteger (readonly)

Returns the week number.

Returns:

  • (Integer)

    the week number



11
# File 'lib/y_fantasy/resources/game/game_week.rb', line 11

option :week, type: Types::Coercible::Integer