Class: Battlenet::WOW::Spell
- Inherits:
-
APIResponse
- Object
- APIResponse
- Battlenet::WOW::Spell
- Defined in:
- lib/battlenet/modules/wow/spell.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(options = {}) ⇒ Spell
constructor
A new instance of Spell.
Methods inherited from APIResponse
Constructor Details
#initialize(options = {}) ⇒ Spell
Returns a new instance of Spell.
5 6 7 8 9 10 11 |
# File 'lib/battlenet/modules/wow/spell.rb', line 5 def initialize(={}) @spell = .delete(:spell) @endpoint = "/spell/#{@spell}" super() end |
Instance Method Details
#details ⇒ Object
13 14 15 |
# File 'lib/battlenet/modules/wow/spell.rb', line 13 def details get_data(@endpoint, {}) end |