Module: Battlenet::Modules::Auction

Included in:
Battlenet
Defined in:
lib/battlenet/modules/auction.rb

Instance Method Summary collapse

Instance Method Details

#auction(realm, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/battlenet/modules/auction.rb', line 6

def auction(realm, options = {})
  realm = URI.escape realm

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

#auction_data(realm, options = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/battlenet/modules/auction.rb', line 12

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