Class: WoW::Spell
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, params = {}) ⇒ Spell
constructor
A new instance of Spell.
Methods inherited from Base
Constructor Details
#initialize(id, params = {}) ⇒ Spell
Returns a new instance of Spell.
5 6 7 8 |
# File 'lib/wow/features/spell.rb', line 5 def initialize(id, params = {}) params = params.merge({fields: fields.join(',')}) super(self.class.data(id, params)) end |
Class Method Details
.data(id, params = {}) ⇒ Object
11 12 13 14 |
# File 'lib/wow/features/spell.rb', line 11 def data(id, params = {}) params.merge!({locale: WoW.locale}) get("/#{id}", query: params).parsed_response end |