Assist

Assist is a simple API handler for Dribbble.

Installation

Add this line to your application's Gemfile:

gem 'Assist'

And then execute:

$ bundle

Or install it yourself as:

$ gem install Assist

Usage

Simple case use would be to load irb/pry. Then do a require 'Assist'.

Retrieving a Player Profile:

player = Assist::Player.new('simplebits') # username being the name of the user you wish to pull JSON data for.

player.username => "simplebits"

player.name => "Dan Cedarholm"

Any fields that is returned in the JSON data can be pulled dynamically from the player Object.

Retrieving a Players Shots:

player = Assist::Player.new('simplebits') # username being the name of the user you wish to pull JSON data for.

player.shots["shots"][1]["player"]["username"]

When you call the shots method it will return and Array of Hashes, that you will be able to do as you wish with.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request