Sha256: 3f9ca0c747f094ac461fce35329ae453d251ed69d6c0aa8a05f35adcf7184fb7

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

require 'uri'

class Battlenet
  module Character
    def character(realm, name, options = {})
      realm = URI.escape realm
      name = URI.escape name

      get "/character/#{realm}/#{name}", options
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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