Class: Wowr::Classes::Skill
- Inherits:
-
Object
- Object
- Wowr::Classes::Skill
- Defined in:
- lib/wowr/classes.rb
Overview
eg Daggers, Riding, Fishing
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Skill
constructor
A new instance of Skill.
Constructor Details
#initialize(elem) ⇒ Skill
Returns a new instance of Skill.
724 725 726 727 728 729 |
# File 'lib/wowr/classes.rb', line 724 def initialize(elem) @key = elem[:key] @name = elem[:name] @value = elem[:value] @max = elem[:max] end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
722 723 724 |
# File 'lib/wowr/classes.rb', line 722 def key @key end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
722 723 724 |
# File 'lib/wowr/classes.rb', line 722 def max @max end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
722 723 724 |
# File 'lib/wowr/classes.rb', line 722 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
722 723 724 |
# File 'lib/wowr/classes.rb', line 722 def value @value end |