Class: Reve::Classes::Skill

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

Overview

A Skill is used in the CharacterSheet for Reve::API#character_sheet call. Attributes

  • id ( Fixnum ) - Type ID of the Skill. (Refer to CCP database dump invtypes)

  • skillpoints ( Fixnum ) - Number of skill points invested in this skill

  • level ( Fixnum ) - Level of the Skill

See Also: CharacterSheet, Reve::API#character_sheet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Skill

:nodoc:



1212
1213
1214
1215
1216
# File 'lib/reve/classes.rb', line 1212

def initialize(elem) #:nodoc:
  @id          = elem['typeID'].to_i
  @skillpoints = elem['skillpoints'].to_i
  @level       = elem['level'].to_i
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



1211
1212
1213
# File 'lib/reve/classes.rb', line 1211

def id
  @id
end

#levelObject

Returns the value of attribute level.



1211
1212
1213
# File 'lib/reve/classes.rb', line 1211

def level
  @level
end

#skillpointsObject

Returns the value of attribute skillpoints.



1211
1212
1213
# File 'lib/reve/classes.rb', line 1211

def skillpoints
  @skillpoints
end

#unpublishedObject

Returns the value of attribute unpublished.



1211
1212
1213
# File 'lib/reve/classes.rb', line 1211

def unpublished
  @unpublished
end