Sha256: ce78fb1ee673f0e145d2f1bd4c61016b3aadd1039810f0ac3d4a346b55f3d861

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# NflData

This gem is for parsing data from NFL.com and returning a JSON blob that can be used for any fantasy related activities you may wish to pursue.

This was written by @mikesells and @thetizzo

## Installation

Add this line to your application's Gemfile:

    gem 'nfl_data'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install nfl_data

## Usage

To use this gem there are some simple calls that can be made.  Everything should return JSON.

### Players

To pull players you can do so by position as follows:

```ruby
  NflData::API::Player.get_all

  NflData::API::Player.get_quarterbacks

  NflData::API::Player.get_runningbacks

  NflData::API::Player.get_wide_receivers

  NflData::API::Player.get_tight_ends
```

### Statlines

To pull statlines you can do so by passing a week and a year:

```ruby
  NflData::API::Statline.get_passing(1, 2014)

  NflData::API::Statline.get_rushing(1, 2014)

  NflData::API::Statline.get_receiving(1, 2014)
```

## Contributing

1. Fork it ( https://github.com/thetizzo/nfl_data/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nfl_data-0.0.5 README.md