Sha256: 242b9b14e00c81fcba47954eb5418d80e24d17c5770c6858518a7cd8b217db08

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

require 'fantasydata/api/utils'

module Fantasydata
  module API
    module Week
      include Fantasydata::API::Utils

      def current_week
        integer_from_response(:get, '/nfl/v2/JSON/CurrentWeek')
      end

      def last_completed_week
        integer_from_response(:get, '/nfl/v2/JSON/LastCompletedWeek')
      end

      def upcoming_week
        integer_from_response(:get, '/nfl/v2/JSON/UpcomingWeek')
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fantasydata-0.2.2 lib/fantasydata/api/week.rb
fantasydata-0.2.1 lib/fantasydata/api/week.rb
fantasydata-0.2.0 lib/fantasydata/api/week.rb
fantasydata-0.0.2 lib/fantasydata/api/week.rb