Class: MLB::EventType
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::EventType
- Defined in:
- lib/mlb/event_type.rb
Overview
Represents a baseball event type
Instance Attribute Summary collapse
-
#base_running_event ⇒ Boolean
(also: #base_running_event?)
Returns whether this event involves base running.
-
#code ⇒ String
Returns the event code.
-
#description ⇒ String
Returns the event description.
-
#hit ⇒ Boolean
(also: #hit?)
Returns whether this event is a hit.
-
#plate_appearance ⇒ Boolean
(also: #plate_appearance?)
Returns whether this event counts as a plate appearance.
Instance Attribute Details
#base_running_event ⇒ Boolean Also known as: base_running_event?
Returns whether this event involves base running
47 |
# File 'lib/mlb/event_type.rb', line 47 attribute :base_running_event, Shale::Type::Boolean |
#code ⇒ String
Returns the event code
15 |
# File 'lib/mlb/event_type.rb', line 15 attribute :code, Shale::Type::String |
#description ⇒ String
Returns the event description
23 |
# File 'lib/mlb/event_type.rb', line 23 attribute :description, Shale::Type::String |
#hit ⇒ Boolean Also known as: hit?
Returns whether this event is a hit
39 |
# File 'lib/mlb/event_type.rb', line 39 attribute :hit, Shale::Type::Boolean |
#plate_appearance ⇒ Boolean Also known as: plate_appearance?
Returns whether this event counts as a plate appearance
31 |
# File 'lib/mlb/event_type.rb', line 31 attribute :plate_appearance, Shale::Type::Boolean |