Module: Wowapi::Modules::Guild
- Included in:
- Wowapi
- Defined in:
- lib/wowapi/modules/guild.rb
Overview
Guild module which handles all guild API actions note: this probably should be handled with some kind of GuildClass, see: git.3lab.re/marahin/wowapi/issues/1
Defined Under Namespace
Classes: GuildClass
Instance Method Summary collapse
-
#guild(realm, name, *args) ⇒ Object
Asks Blizzard API for Guild resource for list of fields visit README.md.
Instance Method Details
#guild(realm, name, *args) ⇒ Object
Asks Blizzard API for Guild resource for list of fields visit README.md
26 27 28 29 30 |
# File 'lib/wowapi/modules/guild.rb', line 26 def guild(realm, name, *args) args = args.map{|n| n if n.is_a?(Symbol) } res = get 'guild/', "#{realm}/#{name}?fields=#{args.join(',')}" Wowapi::Modules::Guild::GuildClass.new(JSON.parse(res)) end |