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, = {}) realm = URI.escape realm get "/auction/data/#{realm}", end |
#auction_data(realm, options = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/battlenet/modules/auction.rb', line 12 def auction_data(realm, = {}) data = auction(realm, ) files = data["files"].first url = files["url"] get url end |