module Wowapi::Modules::Guild

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

Public Instance Methods

guild(realm, name, *args) click to toggle source

Asks Blizzard API for Guild resource for list of fields visit README.md

# 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