Class: Wowr::Classes::RepFaction

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/character.rb

Overview

Smaller NPC faction that is part of a FactionCategory eg Darnassus, Argent Dawn

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ RepFaction

Returns a new instance of RepFaction.



813
814
815
816
817
# File 'lib/wowr/character.rb', line 813

def initialize(elem)
	@key 				= elem[:key]
	@name 			= elem[:name]
	@reputation = elem[:reputation].to_i
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



807
808
809
# File 'lib/wowr/character.rb', line 807

def key
  @key
end

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



807
808
809
# File 'lib/wowr/character.rb', line 807

def name
  @name
end

#reputationObject (readonly) Also known as: to_i, rep

Returns the value of attribute reputation.



807
808
809
# File 'lib/wowr/character.rb', line 807

def reputation
  @reputation
end