Class: Reve::Classes::CorporateRole
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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ CorporateRole
constructor
:nodoc:.
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 |