lib/wowr/guild.rb in renchap-wowr-0.5.1 vs lib/wowr/guild.rb in renchap-wowr-0.5.3
- old
+ new
@@ -12,12 +12,12 @@
attr_reader :name, :url, :realm
# :roster_url, :stats_url, :stats_url_escape,
alias_method :to_s, :name
def initialize(elem)
- if (elem%'guildKey')
- guild = (elem%'guildKey')
+ if (elem%'guildHeader')
+ guild = (elem%'guildHeader')
else
guild = elem
end
@name = guild[:name]
@@ -80,6 +80,6 @@
end
end
end
end
-end
\ No newline at end of file
+end