Sha256: ef3069f6538e88a282f5d0bf2a54821691f87c59b146c9950a1b7c0396d73fe2

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

# FootStats

FootStats API Client in Ruby.

## Installation

Add this line to your application's Gemfile:

    gem 'foot_stats'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install foot_stats

## Setup

```ruby
    FootStats::Setup.setup do |config|
      config.username      = "username"
      config.password      = "password"
      config.logger        = Rails.logger
      config.base_url      = "http://footstats.com"
      config.payload_store = Redis.new
    end
```

## Usage

```ruby
     # Championship
     #
     championships = FootStats::Championship.all

     # Championship
     #
     championship = championships.first

     # Championship Classification
     #
     championship.classification 

     # Championship Teams
     #
     championship.teams

     # Matches
     #
     matches = championship.matches

     # Match
     match = matches.first

     # Narrations
     #
     match.narrations
```

## Next

* Create a Fake App (Sandbox), that simulates FootStats API.

## Contributing

1. Fork it
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 new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foot_stats-0.1.0 README.md