Class: MLB::PlayResult
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::PlayResult
- Defined in:
- lib/mlb/play.rb
Overview
Represents the result of a play
Instance Attribute Summary collapse
-
#away_score ⇒ Integer
Returns the away score after this play.
-
#description ⇒ String
Returns the description.
-
#event ⇒ String
Returns the event name.
-
#event_type ⇒ String
Returns the event type code.
-
#home_score ⇒ Integer
Returns the home score after this play.
-
#is_out ⇒ Boolean
Returns whether this play resulted in an out.
-
#rbi ⇒ Integer
Returns the RBIs on this play.
-
#type ⇒ String
Returns the result type.
Instance Method Summary collapse
-
#out? ⇒ Boolean
Returns whether this play resulted in an out.
Instance Attribute Details
#away_score ⇒ Integer
Returns the away score after this play
54 |
# File 'lib/mlb/play.rb', line 54 attribute :away_score, Shale::Type::Integer |
#description ⇒ String
Returns the description
38 |
# File 'lib/mlb/play.rb', line 38 attribute :description, Shale::Type::String |
#event ⇒ String
Returns the event name
22 |
# File 'lib/mlb/play.rb', line 22 attribute :event, Shale::Type::String |
#event_type ⇒ String
Returns the event type code
30 |
# File 'lib/mlb/play.rb', line 30 attribute :event_type, Shale::Type::String |
#home_score ⇒ Integer
Returns the home score after this play
62 |
# File 'lib/mlb/play.rb', line 62 attribute :home_score, Shale::Type::Integer |
#is_out ⇒ Boolean
Returns whether this play resulted in an out
70 |
# File 'lib/mlb/play.rb', line 70 attribute :is_out, Shale::Type::Boolean |
#rbi ⇒ Integer
Returns the RBIs on this play
46 |
# File 'lib/mlb/play.rb', line 46 attribute :rbi, Shale::Type::Integer |
#type ⇒ String
Returns the result type
14 |
# File 'lib/mlb/play.rb', line 14 attribute :type, Shale::Type::String |
Instance Method Details
#out? ⇒ Boolean
Returns whether this play resulted in an out
78 79 80 |
# File 'lib/mlb/play.rb', line 78 def out? is_out end |