https://github.com/corroded/covetous
Ruby Wrapper for the Diablo 3 Web API
https://github.com/corroded/covetous
Last synced: about 1 year ago
JSON representation
Ruby Wrapper for the Diablo 3 Web API
- Host: GitHub
- URL: https://github.com/corroded/covetous
- Owner: corroded
- License: mit
- Created: 2012-09-16T23:44:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-04-02T06:56:24.000Z (over 13 years ago)
- Last Synced: 2025-03-27T04:22:48.815Z (over 1 year ago)
- Language: Ruby
- Homepage: http://corroded.github.com/covetous
- Size: 604 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Covetous
Covetous is a Ruby Wrapper for the Diablo 3 Web API
[](https://travis-ci.org/corroded/covetous)
[](https://travis-ci.org/corroded/covetous)
[](https://codeclimate.com/github/corroded/covetous)
## Installation
Add this line to your application's Gemfile:
gem 'covetous'
And then execute:
$ bundle
Or install it yourself as:
$ gem install covetous
## Usage
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:
### Career Profile
**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
### Hero Profile
my_hero = Covetous::Profile::Hero.new 'corroded-6950', '12793941'
puts my_hero.skills
puts my_hero.paragon_level
### Artisan Data
artisan = Covetous::Data::Artisan.new 'blacksmith'
puts artisan.name
### Follower Data
follower = Covetous::Data::Follower.new 'enchantress'
puts artisan.name
### Item Data
item = Covetous::Data::Item.new 'CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA'
puts item.name
puts item.attributes
## 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