Class: Warcraft::CharacterRequest
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- Warcraft::CharacterRequest
- Defined in:
- lib/warcraft/character_request.rb
Instance Method Summary collapse
- #achievements ⇒ Object
-
#initialize(client, region, realm, character_name) ⇒ CharacterRequest
constructor
A new instance of CharacterRequest.
- #profile ⇒ Object
Methods inherited from ApiRequest
Constructor Details
#initialize(client, region, realm, character_name) ⇒ CharacterRequest
Returns a new instance of CharacterRequest.
6 7 8 9 10 |
# File 'lib/warcraft/character_request.rb', line 6 def initialize(client, region, realm, character_name) super(client, region) @realm = realm @name = character_name end |
Instance Method Details
#achievements ⇒ Object
16 17 18 19 |
# File 'lib/warcraft/character_request.rb', line 16 def achievements Character::Achievements.new(@client, get("/profile/wow/character/#{@realm}/#{@name}/achievements", region: @region)) end |