Sha256: b95cf1e75d517618685e85d8d61af3704804011be5a1e03a26fb6848a4bce348
Contents?: true
Size: 874 Bytes
Versions: 4
Compression:
Stored size: 874 Bytes
Contents
require 'fantasydata/api/utils' module Fantasydata module API module Timeline include Fantasydata::API::Utils def current_timeline objects = objects_from_response(Fantasydata::Timeline, :get, "/nfl/v2/JSON/Timeframes/current") objects.first end def upcoming_timelines objects = objects_from_response(Fantasydata::Timeline, :get, "/nfl/v2/JSON/Timeframes/upcoming") end def completed_timelines objects = objects_from_response(Fantasydata::Timeline, :get, "/nfl/v2/JSON/Timeframes/completed") end def recent_timelines objects = objects_from_response(Fantasydata::Timeline, :get, "/nfl/v2/JSON/Timeframes/recent") end def all_timelines objects = objects_from_response(Fantasydata::Timeline, :get, "/nfl/v2/JSON/Timeframes/all") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems