Class: MLB::RosterType

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/roster_type.rb

Overview

Represents a roster type

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns the roster type description

Examples:

roster_type.description #=> "40-Man Roster"

Returns:

  • (String)

    the roster type description



15
# File 'lib/mlb/roster_type.rb', line 15

attribute :description, Shale::Type::String

#lookup_nameString

Returns the lookup name

Examples:

roster_type.lookup_name #=> "40Man"

Returns:

  • (String)

    the lookup name



23
# File 'lib/mlb/roster_type.rb', line 23

attribute :lookup_name, Shale::Type::String

#parameterString

Returns the API parameter value

Examples:

roster_type.parameter #=> "40Man"

Returns:

  • (String)

    the API parameter value



31
# File 'lib/mlb/roster_type.rb', line 31

attribute :parameter, Shale::Type::String