Class: Reve::Classes::SkillBonus

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ SkillBonus

:nodoc:



1179
1180
1181
1182
# File 'lib/reve/classes.rb', line 1179

def initialize(elem) #:nodoc:
  @type = elem['bonusType']
  @value = elem['bonusValue']
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



1178
1179
1180
# File 'lib/reve/classes.rb', line 1178

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



1178
1179
1180
# File 'lib/reve/classes.rb', line 1178

def value
  @value
end