Class: Warcraft::CharacterRequest

Inherits:
ApiRequest show all
Defined in:
lib/warcraft/character_request.rb

Instance Method Summary collapse

Methods inherited from ApiRequest

#get, #namespace

Constructor Details

#initialize(client, region, realm, character_name) ⇒ CharacterRequest

Returns a new instance of CharacterRequest.

Parameters:



6
7
8
9
10
11
# File 'lib/warcraft/character_request.rb', line 6

def initialize(client, region, realm, character_name)
  super(client)
  @region = region
  @realm = realm
  @name = character_name
end

Instance Method Details

#profileObject



13
14
15
# File 'lib/warcraft/character_request.rb', line 13

def profile
  Character::Profile.new get("/profile/wow/character/#{@realm}/#{@name}")
end