Class: Reve::Classes::CorporateTitle

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

Overview

Part of the CharacterSheet; represents a grantable Corporation title to a Character. Attributes:

  • id ( Fixnum ) - Bitmask/ID of the title

  • name ( String ) - Name of the title

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (CorporateTitle) initialize(elem)

:nodoc:



765
766
767
768
# File 'lib/reve/classes.rb', line 765

def initialize(elem) #:nodoc:
  @id = elem['titleID'].to_i
  @name = elem['titleName']
end

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



764
765
766
# File 'lib/reve/classes.rb', line 764

def id
  @id
end

- (Object) name (readonly)

Returns the value of attribute name



764
765
766
# File 'lib/reve/classes.rb', line 764

def name
  @name
end