Class: Stattleship::Models::AtBat

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/stattleship/models/at_bat.rb

Instance Method Summary collapse

Instance Method Details

#dumpObject


8
9
10
11
12
13
14
15
16
17
# File 'lib/stattleship/models/at_bat.rb', line 8

def dump
  {
    id: id,
    description: description,
    inning: inning,
    inning_label: inning_label,
    half: half,
    baseball_pitch_ids: baseball_pitch_ids,
  }
end

#to_sentenceObject


4
5
6
# File 'lib/stattleship/models/at_bat.rb', line 4

def to_sentence
  description
end