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:



1226
1227
1228
1229
# File 'lib/reve/classes.rb', line 1226

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



1225
1226
1227
# File 'lib/reve/classes.rb', line 1225

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



1225
1226
1227
# File 'lib/reve/classes.rb', line 1225

def value
  @value
end