module Footballdata
Constants
- LEAGUES
Public Class Methods
config()
click to toggle source
# File lib/webget-football/apis/config.rb, line 15 def self.config() @config ||= Configuration.new; end
configure() { |config| ... }
click to toggle source
lets you use
Footballdata.configure do |config| config.convert.out_dir = './o' end
# File lib/webget-football/apis/config.rb, line 13 def self.configure() yield( config ); end
schedule( league:, season: )
click to toggle source
porcelain “api”
# File lib/webget-football/apis/download.rb, line 6 def self.schedule( league:, season: ) season = Season( season ) ## cast (ensure) season class (NOT string, integer, etc.) league_code = LEAGUES[ league.downcase ] Metal.teams( league_code, season.start_year ) Metal.matches( league_code, season.start_year ) end