Sha256: 04e50e7d4e45ddf88584c40082f325d766b5d364c02f576500b92a76a6f1db6f

Contents?: true

Size: 635 Bytes

Versions: 7

Compression:

Stored size: 635 Bytes

Contents

module NflData
  module API
    class Statline

      def initialize
        @parser = StatlineParser.new
      end

      def get(week, year, stat_type)
        @parser.get(week, year, stat_type).to_json
      end

      class << self
        def get_all(week, year)
          self.new.get(week, year, :all)
        end

        def get_passing(week, year)
          self.new.get(week, year, :passing)
        end

        def get_rushing(week, year)
          self.new.get(week, year, :rushing)
        end

        def get_receiving(week, year)
          self.new.get(week, year, :receiving)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nfl_data-0.0.10 lib/nfl_data/api/statline.rb
nfl_data-0.0.9 lib/nfl_data/api/statline.rb
nfl_data-0.0.8 lib/nfl_data/api/statline.rb
nfl_data-0.0.7 lib/nfl_data/api/statline.rb
nfl_data-0.0.6 lib/nfl_data/api/statline.rb
nfl_data-0.0.5 lib/nfl_data/api/statline.rb
nfl_data-0.0.4 lib/nfl_data/api/statline.rb