CoderWally
A very very simple Gem to fetch user badges from Coder Wall
Installation
Add this line to your application's Gemfile:
gem 'coder_wally'
And then execute:
$ bundle
Or install it yourself as:
$ gem install coder_wally
Usage
After installing the Gem, you can for now you can invoke it (remember to replace with you a valid username) from the command line using:
ruby -Ilib bin/coder_wally <username>
In order to get a user's badges, you do this:
client = CoderWally::Client.new(<username>)
client.user.badges
In order to get a user's details, you do this:
client = CoderWally::Client.new(<username>)
client.user.details
In order to get a user's accounts, you do this:
client = CoderWally::Client.new(<username>)
client.user.accounts
In order to get everything (for now user, accounts and badges), you do this:
client = CoderWally::Client.new(<username>)
client.user
Contributing
- Fork it ( https://github.com/gregstewart/coder_wally/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request