Covetous is a Ruby Wrapper for the Diablo 3 Web API
Add this line to your application's Gemfile:
gem 'covetous'
And then execute:
$ bundle
Or install it yourself as:
$ gem install covetous
As of now, Covetous is just a plain ol' gee-- Ruby gem. He is basically just a Ruby wrapper(as I keep repeating...) for the Diablo 3 Web API. After installing, all you have to do is require it where you like and just use it!
Some example usage would be:
Note: Top level keys from the hashes are available as methods for your convenience
my_profile = Covetous::Profile::Career.new 'corroded-6950'
puts my_profile.heroes
puts my_profile.kills
my_hero = Covetous::Profile::Hero.new 'corroded-6950', '12793941'
puts my_hero.skills
puts my_hero.paragon_level
artisan = Covetous::Data::Artisan.new 'blacksmith'
puts artisan.name
follower = Covetous::Data::Follower.new 'enchantress'
puts artisan.name
item = Covetous::Data::Item.new 'CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA'
puts item.name
puts item.attributes
- Fork it
- 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 new Pull Request