class Stattleship::Pitches
Constants
- PITCHES
Public Class Methods
fetch(params:)
click to toggle source
Calls superclass method
Stattleship::Endpoint::fetch
# File lib/stattleship/pitches.rb, line 5 def self.fetch(params:) super(path: PITCHES, params: params) end
Public Instance Methods
populate()
click to toggle source
# File lib/stattleship/pitches.rb, line 10 def populate pitches.each do |model| populate_games(model) games.each do |game| populate_game(game) end populate_pitchers(model) populate_hitters(model) populate_teams(model) populate_hitter_teams(model) end end