Sha256: 50e5bb5cfc1de25ae2c9ad09023f2f74e01714a98bdb382d919fcd994021a27e
Contents?: true
Size: 649 Bytes
Versions: 10
Compression:
Stored size: 649 Bytes
Contents
module MLBGameday class Pitcher < Player def era @data.xpath('//Player/season/@era').text.to_f end def wins @data.xpath('//Player/season/@w').text.to_i end def losses @data.xpath('//Player/season/@l').text.to_i end def innings @data.xpath('//Player/season/@ip').text.to_f end def saves @data.xpath('//Player/season/@sv').text.to_i end def whip @data.xpath('//Player/season/@whip').text.to_f end def strikeouts @data.xpath('//Player/season/@so').text.to_i end def walks @data.xpath('//Player/season/@bb').text.to_i end end end
Version data entries
10 entries across 10 versions & 1 rubygems