Class: YFantasy::Group

Inherits:
BaseResource show all
Defined in:
lib/y_fantasy/resources/group.rb,
lib/y_fantasy/resources/group/settings.rb,
lib/y_fantasy/resources/group/standings.rb

Overview

Represents a Yahoo Fantasy NFL Survival Group

Defined Under Namespace

Classes: Settings, Standings

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseResource

collection_name, dependent?, find, find_all, #key, resource_name

Methods included from Subresourceable

included

Instance Attribute Details

#commissioner_nicknameString? (readonly)

Returns the nickname of the commissioner.

Returns:

  • (String, nil)

    the nickname of the commissioner



52
# File 'lib/y_fantasy/resources/group.rb', line 52

option :commissioner_nickname, optional: true

#current_login_is_memberBoolean (readonly)

Returns whether the current user is a member of this group.

Returns:

  • (Boolean)

    whether the current user is a member of this group



34
# File 'lib/y_fantasy/resources/group.rb', line 34

option :current_login_is_member, type: Types::Params::Bool

#current_weekInteger (readonly)

Returns the current week number of the group.

Returns:

  • (Integer)

    the current week number of the group



38
# File 'lib/y_fantasy/resources/group.rb', line 38

option :current_week, type: Types::Coercible::Integer

#current_week_lock_timeInteger (readonly)

Returns the timestamp when the current week locks.

Returns:

  • (Integer)

    the timestamp when the current week locks



46
# File 'lib/y_fantasy/resources/group.rb', line 46

option :current_week_lock_time, type: Types::Coercible::Integer

#group_idString (readonly)

Returns the ID for this group.

Returns:

  • (String)

    the ID for this group



14
# File 'lib/y_fantasy/resources/group.rb', line 14

option :group_id

#group_keyString (readonly)

Returns the unique key for this group.

Returns:

  • (String)

    the unique key for this group



10
# File 'lib/y_fantasy/resources/group.rb', line 10

option :group_key

#has_group_startedBoolean (readonly)

Returns whether the group has started.

Returns:

  • (Boolean)

    whether the group has started



42
# File 'lib/y_fantasy/resources/group.rb', line 42

option :has_group_started, type: Types::Params::Bool

#is_commissionerBoolean? (readonly)

Returns whether the current user is the commissioner.

Returns:

  • (Boolean, nil)

    whether the current user is the commissioner



56
# File 'lib/y_fantasy/resources/group.rb', line 56

option :is_commissioner, optional: true, type: Types::Params::Bool

#nameString (readonly)

Returns the name of the group.

Returns:

  • (String)

    the name of the group



18
# File 'lib/y_fantasy/resources/group.rb', line 18

option :name

#num_teamsInteger (readonly)

Returns the number of teams in the group.

Returns:

  • (Integer)

    the number of teams in the group



30
# File 'lib/y_fantasy/resources/group.rb', line 30

option :num_teams, type: Types::Coercible::Integer

#settingsSettings? (readonly)

Returns the settings for this group.

Returns:

  • (Settings, nil)

    the settings for this group



62
# File 'lib/y_fantasy/resources/group.rb', line 62

option :settings, optional: true, type: instance_of(Settings)

#standingsStandings? (readonly)

Returns the standings for this group.

Returns:

  • (Standings, nil)

    the standings for this group



66
# File 'lib/y_fantasy/resources/group.rb', line 66

option :standings, optional: true, type: instance_of(Standings)

#teamsArray<PickemTeam>? (readonly)

Returns the teams in this group.

Returns:

  • (Array<PickemTeam>, nil)

    the teams in this group



70
# File 'lib/y_fantasy/resources/group.rb', line 70

option :teams, optional: true, type: array_of(PickemTeam)

#typeString (readonly)

Returns the type of group (e.g. “private”).

Returns:

  • (String)

    the type of group (e.g. “private”)



26
# File 'lib/y_fantasy/resources/group.rb', line 26

option :type

#urlString (readonly)

Returns the URL to the group’s Yahoo Fantasy page.

Returns:

  • (String)

    the URL to the group’s Yahoo Fantasy page



22
# File 'lib/y_fantasy/resources/group.rb', line 22

option :url