module EspnFflApi
Constants
- VERSION
Public Class Methods
client()
click to toggle source
# File lib/espn_ffl_api.rb, line 27 def self.client @@client ||= ApiClient.new(2019) end
config()
click to toggle source
# File lib/espn_ffl_api.rb, line 23 def self.config OpenStruct.new(@config) end
owners()
click to toggle source
# File lib/espn_ffl_api.rb, line 31 def self.owners client.views = [:team] @@owners ||= client.get["members"].map do |member_hash| Owner.build(member_hash) end end
teams()
click to toggle source
# File lib/espn_ffl_api.rb, line 39 def self.teams client.views = [:team] @@teams ||= client.get["teams"].map do |team_hash| Team.build(team_hash) end end