Class: YFantasy::Game::PositionType

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

Overview

Represents a position type within a fantasy game

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 full name of the position type.

Examples:

“Offense”, “Kickers”, “Defense/Special Teams”

Returns:

  • (String)

    full name of the position type



17
# File 'lib/y_fantasy/resources/game/position_type.rb', line 17

option :display_name

#typeString (readonly)

Returns position type abbreviation.

Examples:

“O”, “K”, “DT”

Returns:

  • (String)

    position type abbreviation



12
# File 'lib/y_fantasy/resources/game/position_type.rb', line 12

option :type