Sha256: c2aee64d3498d7351fa227b2b02756e3b500a4247b28a434608357372a50ed11
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
module FplGsheet class League attr_reader :name, :id def initialize(league_id) @league_data=JSON.load(open("https://fantasy.premierleague.com/drf/leagues-classic-standings/#{league_id}", {ssl_verify_mode: 0})) @name=@league_data['league']['name'] @id=@league_data['league']['id'] #@fixtures = fixtures.map { |f| TeamFixture.new(f, @data['id']) } end def standings @standings ||= @league_data['standings']['results'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fpl_gsheet-0.1.1 | lib/fpl_gsheet/league.rb |