Class: Warcraft::Armory
- Inherits:
-
Object
- Object
- Warcraft::Armory
- Defined in:
- lib/warcraft_armory.rb
Class Method Summary collapse
-
.find(location, realm, character_name) ⇒ Object
Find a WoW character.
Class Method Details
.find(location, realm, character_name) ⇒ Object
Find a WoW character
location
defines the server location, valid (tested) options are :eu or :us realm
the realm where your character is. E.g. “Aszune” character_name
the name of your character. E.g. “Adries”
15 16 17 |
# File 'lib/warcraft_armory.rb', line 15 def self.find(location, realm, character_name) self.parse_html("http://#{location.to_s}.wowarmory.com/character-sheet.xml?r=#{realm}&n=#{character_name}") end |