Class: NBA::Position

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/nba/position.rb

Overview

Represents a player position

Instance Attribute Summary collapse

Instance Attribute Details

#abbreviationString

Returns the position abbreviation

Examples:

position.abbreviation #=> "G"

Returns:

  • (String)

    the position abbreviation



39
# File 'lib/nba/position.rb', line 39

attribute :abbreviation, Shale::Type::String

#codeString

Returns the position code

Examples:

position.code #=> "PG"

Returns:

  • (String)

    the position code



15
# File 'lib/nba/position.rb', line 15

attribute :code, Shale::Type::String

#nameString

Returns the position name

Examples:

position.name #=> "Point Guard"

Returns:

  • (String)

    the position name



23
# File 'lib/nba/position.rb', line 23

attribute :name, Shale::Type::String

#typeString

Returns the position type

Examples:

position.type #=> "Guard"

Returns:

  • (String)

    the position type



31
# File 'lib/nba/position.rb', line 31

attribute :type, Shale::Type::String