Class: WowCommunityApi::Guild

Inherits:
BattleNet show all
Defined in:
lib/wow_community_api/guild.rb

Constant Summary

Constants inherited from BattleNet

BattleNet::DEFAULT_LOCALE, BattleNet::DEFAULT_REGION

Class Method Summary collapse

Methods inherited from BattleNet

build_query, get, reset!

Class Method Details

.find_by_realm_and_name(realm, name, *field) ⇒ Object



3
4
5
6
# File 'lib/wow_community_api/guild.rb', line 3

def self.find_by_realm_and_name(realm, name, *field)
  fields = { :fields => field.join(",") } unless field.empty?
  get("/guild/#{realm}/#{name}", fields).to_ostruct
end