Class: Reve::Classes::CorporateTitle
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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ CorporateTitle
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ CorporateTitle
:nodoc:
722 723 724 725 |
# File 'lib/reve/classes.rb', line 722 def initialize(elem) #:nodoc: @id = elem['titleID'].to_i @name = elem['titleName'] end |