Class: MLB::ScheduleEventType

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

Overview

Represents a schedule event type

Instance Attribute Summary collapse

Instance Attribute Details

#codeString

Returns the event type code

Examples:

schedule_event_type.code #=> "P"

Returns:

  • (String)

    the event type code



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

attribute :code, Shale::Type::String

#nameString

Returns the event type name

Examples:

schedule_event_type.name #=> "Postseason Game"

Returns:

  • (String)

    the event type name



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

attribute :name, Shale::Type::String