lib/battlenet/modules/auction.rb in battlenet-1.2.0 vs lib/battlenet/modules/auction.rb in battlenet-1.3.0

- old
+ new

@@ -1,18 +1,20 @@ require 'uri' class Battlenet - module Auction - def auction(realm, options = {}) - realm = URI.escape realm + module Modules + module Auction + def auction(realm, options = {}) + realm = URI.escape realm - get "/auction/data/#{realm}", options - end + get "/auction/data/#{realm}", options + end - def auction_data(realm, options = {}) - data = auction(realm, options) - files = data["files"].first - url = files["url"] - get url + def auction_data(realm, options = {}) + data = auction(realm, options) + files = data["files"].first + url = files["url"] + get url + end end end end