Class: Reve::Classes::CorporateRole

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

Overview

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

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

  • name ( String ) - Name of the role

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ CorporateRole

:nodoc:



709
710
711
712
# File 'lib/reve/classes.rb', line 709

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



708
709
710
# File 'lib/reve/classes.rb', line 708

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



708
709
710
# File 'lib/reve/classes.rb', line 708

def name
  @name
end