Sha256: 0f158b7b910a5cf3e553ffa868ab91e9bac96da6ce577754eef4ad0e381d684c

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

# Covetous

Covetous is a Ruby Wrapper for the Diablo 3 Web API

[![Code Climate](https://codeclimate.com/badge.png)](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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
covetous-0.1.2 README.md
covetous-0.1.1 README.md