Class: MLB::PlayAbout
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::PlayAbout
- Defined in:
- lib/mlb/play.rb
Overview
Represents information about a play
Instance Attribute Summary collapse
-
#at_bat_index ⇒ Integer
Returns the at bat index.
-
#half_inning ⇒ String
Returns the half inning.
-
#inning ⇒ Integer
Returns the inning number.
-
#is_complete ⇒ Boolean
Returns whether the play is complete.
-
#is_scoring_play ⇒ Boolean
Returns whether this is a scoring play.
-
#is_top_inning ⇒ Boolean
Returns whether it’s the top of the inning.
Instance Method Summary collapse
-
#complete? ⇒ Boolean
Returns whether the play is complete.
-
#scoring_play? ⇒ Boolean
Returns whether this is a scoring play.
-
#top_inning? ⇒ Boolean
Returns whether it’s the top of the inning.
Instance Attribute Details
#at_bat_index ⇒ Integer
Returns the at bat index
102 |
# File 'lib/mlb/play.rb', line 102 attribute :at_bat_index, Shale::Type::Integer |
#half_inning ⇒ String
Returns the half inning
110 |
# File 'lib/mlb/play.rb', line 110 attribute :half_inning, Shale::Type::String |
#inning ⇒ Integer
Returns the inning number
126 |
# File 'lib/mlb/play.rb', line 126 attribute :inning, Shale::Type::Integer |
#is_complete ⇒ Boolean
Returns whether the play is complete
134 |
# File 'lib/mlb/play.rb', line 134 attribute :is_complete, Shale::Type::Boolean |
#is_scoring_play ⇒ Boolean
Returns whether this is a scoring play
142 |
# File 'lib/mlb/play.rb', line 142 attribute :is_scoring_play, Shale::Type::Boolean |
#is_top_inning ⇒ Boolean
Returns whether it’s the top of the inning
118 |
# File 'lib/mlb/play.rb', line 118 attribute :is_top_inning, Shale::Type::Boolean |
Instance Method Details
#complete? ⇒ Boolean
Returns whether the play is complete
160 161 162 |
# File 'lib/mlb/play.rb', line 160 def complete? is_complete end |
#scoring_play? ⇒ Boolean
Returns whether this is a scoring play
170 171 172 |
# File 'lib/mlb/play.rb', line 170 def scoring_play? is_scoring_play end |
#top_inning? ⇒ Boolean
Returns whether it’s the top of the inning
150 151 152 |
# File 'lib/mlb/play.rb', line 150 def top_inning? is_top_inning end |