Sha256: e73b71130f9748e5d39828932c1fc80cef9c5145745956b355fa484553d0e1f7

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

module NflData
  module API
    class Team
      def initialize
        @parser = TeamParser.new
      end

      def get(year, with_schedule = false)
        @parser.get_by_year(year, with_schedule).to_json
      end

      class << self
        def get_all(year)
          new.get(year)
        end

        def get_all_with_schedule(year)
          new.get(year, true)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nfl_data-0.0.14 lib/nfl_data/api/team.rb
nfl_data-0.0.13 lib/nfl_data/api/team.rb
nfl_data-0.0.12 lib/nfl_data/api/team.rb
nfl_data-0.0.11 lib/nfl_data/api/team.rb