Sha256: 2d873aeb54739a3c88f3ccf60112f98c36f6eb51a3709b73a52c520b07ef296b

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

module GunBroker
  class Item

    def initialize(attrs = {})
      @attrs = attrs
    end

    def id
      @attrs['itemID']
    end

    def [](key)
      @attrs[key]
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gun_broker-0.2.0 lib/gun_broker/item.rb
gun_broker-0.1.0 lib/gun_broker/item.rb