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:



1146
1147
1148
1149
1150
# File 'lib/reve/classes.rb', line 1146

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.



1145
1146
1147
# File 'lib/reve/classes.rb', line 1145

def id
  @id
end

#levelObject

Returns the value of attribute level.



1145
1146
1147
# File 'lib/reve/classes.rb', line 1145

def level
  @level
end

#skillpointsObject

Returns the value of attribute skillpoints.



1145
1146
1147
# File 'lib/reve/classes.rb', line 1145

def skillpoints
  @skillpoints
end

#unpublishedObject

Returns the value of attribute unpublished.



1145
1146
1147
# File 'lib/reve/classes.rb', line 1145

def unpublished
  @unpublished
end