Class: Wowr::Classes::SearchGuild
Overview
Basic search information returned by the search.xml <guilds>
<guild
battleGroup=“Ruin” faction=“Alliance” factionId=“0” name=“HAND” realm=“Stormrage” relevance=“100” url=“r=Stormrage&n=HAND&p=1”/> </guilds>
Instance Attribute Summary collapse
-
#battle_group ⇒ Object
readonly
Returns the value of attribute battle_group.
-
#faction ⇒ Object
readonly
Returns the value of attribute faction.
-
#faction_id ⇒ Object
readonly
Returns the value of attribute faction_id.
Attributes inherited from Guild
Instance Method Summary collapse
-
#initialize(elem) ⇒ SearchGuild
constructor
A new instance of SearchGuild.
Constructor Details
#initialize(elem) ⇒ SearchGuild
Returns a new instance of SearchGuild.
43 44 45 46 47 48 49 50 51 |
# File 'lib/wowr/guild.rb', line 43 def initialize(elem) super(elem) @battle_group = elem[:battleGroup] @faction = elem[:faction] @faction_id = elem[:factionId].to_i @relevance = elem[:relevance].to_i end |
Instance Attribute Details
#battle_group ⇒ Object (readonly)
Returns the value of attribute battle_group.
41 42 43 |
# File 'lib/wowr/guild.rb', line 41 def battle_group @battle_group end |
#faction ⇒ Object (readonly)
Returns the value of attribute faction.
41 42 43 |
# File 'lib/wowr/guild.rb', line 41 def faction @faction end |
#faction_id ⇒ Object (readonly)
Returns the value of attribute faction_id.
41 42 43 |
# File 'lib/wowr/guild.rb', line 41 def faction_id @faction_id end |