Class: Reve::Classes::SkillBonus
Overview
A SkillBonus, for SkillTree and Reve::API#skill_tree. Bear in mind that “SkillBonus” doesn’t always mean anything useful or beneficial
-
type ( String ) - Name of the bonus
-
value ( String ) - Value of the bonus. This is may be Fixnum or Float or Boolean but is left as a String
See Also: SkillTree, Reve::API#skill_tree
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SkillBonus
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ SkillBonus
:nodoc:
1136 1137 1138 1139 |
# File 'lib/reve/classes.rb', line 1136 def initialize(elem) #:nodoc: @type = elem['bonusType'] @value = elem['bonusValue'] end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
1135 1136 1137 |
# File 'lib/reve/classes.rb', line 1135 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
1135 1136 1137 |
# File 'lib/reve/classes.rb', line 1135 def value @value end |