Sha256: 814711767f9a146eca157cad20732e6dd9ffbc0ac2ec4ac52f78872f4046078a

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

class Bnet::Diablo3::Item < Bnet::BnetResource
  attr_accessor :item_id, :location, :name

  def self.from_api(location, raw_response)
    item = new(location: location)
    item.item_id = raw_response["id"]
    item.name = raw_response["name"]

    return item
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bnet-0.0.10 lib/bnet/diablo3/item.rb
bnet-0.0.5 lib/bnet/diablo3/item.rb
bnet-0.0.4 lib/bnet/diablo3/item.rb