Class: Wowr::Classes::RepFaction
- Inherits:
-
Object
- Object
- Wowr::Classes::RepFaction
- Defined in:
- lib/wowr/character.rb
Overview
Smaller NPC faction that is part of a FactionCategory eg Darnassus, Argent Dawn
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
-
#reputation ⇒ Object
(also: #to_i, #rep)
readonly
Returns the value of attribute reputation.
Instance Method Summary collapse
-
#initialize(elem) ⇒ RepFaction
constructor
A new instance of RepFaction.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
807 808 809 |
# File 'lib/wowr/character.rb', line 807 def key @key end |
#name ⇒ Object (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 |
#reputation ⇒ Object (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 |