Sha256: c062edb6e0960c1e6da60e5424ae8b5e2cec82b675ed446d8facbb378274d05c

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

require 'uri'

class Battlenet
  module Auction
    def auction(realm, options = {})
      realm = URI.escape realm

      get "/auction/data/#{realm}", options
    end

    def auction_data(realm, options = {})
      data = auction(realm, options)
      files = data["files"].first
      url = files["url"]
      get url
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
battlenet-1.2.0 lib/battlenet/modules/auction.rb
battlenet-1.1.1 lib/battlenet/modules/auction.rb
battlenet-1.1.0 lib/battlenet/modules/auction.rb
battlenet-1.0.0 lib/battlenet/modules/auction.rb