Sha256: efa655d24edc2a60f0008e5f1ef079af26c44ec0c264cbdaf5aee99945c6afba

Contents?: true

Size: 254 Bytes

Versions: 4

Compression:

Stored size: 254 Bytes

Contents

require 'uri'

class Battlenet
  module Arena
    def arena(realm, size, name, options = {})
      realm = URI.escape realm
      size = URI.escape size
      name = URI.escape name

      get "/arena/#{realm}/#{size}/#{name}", options
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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