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.



808
809
810
811
812
# File 'lib/wowr/character.rb', line 808

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.



802
803
804
# File 'lib/wowr/character.rb', line 802

def key
  @key
end

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



802
803
804
# File 'lib/wowr/character.rb', line 802

def name
  @name
end

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

Returns the value of attribute reputation.



802
803
804
# File 'lib/wowr/character.rb', line 802

def reputation
  @reputation
end