lib/sportradar/api/baseball/half_inning.rb in sportradar-api-0.10.48 vs lib/sportradar/api/baseball/half_inning.rb in sportradar-api-0.10.49

- old
+ new

@@ -22,10 +22,10 @@ @events = data['events'].map{ |hash| Event.new(hash, half_inning: self) } # create_data(@events_hash, data['events'], klass: Event, api: @api, half_inning: self) end def over? - pitches.last.count&.dig('outs') == 3 + pitches.last&.count&.dig('outs') == 3 end def pitches at_bats.flat_map(&:pitches) end