Class: Reve::Classes::CharacterOtherCorporateMedal

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

Overview

Composed in CharacterMedals. Issued by the Corporation the Character is a member Attributes:

  • corporation_id ( Fixnum ) - ID of the Corporation that issued the CharacterOtherCorporateMedal

  • title ( String ) - The title this CharacterOtherCorporateMedal bestows on the Character

  • description ( String ) - Description of the CharacterOtherCorporateMedal.

See Also: Medal, CharacterMedal, CorporateMemberMedal, CorporateMedal

Instance Attribute Summary (collapse)

Attributes inherited from CharacterMedal

#issuer_id, #reason, #status

Attributes inherited from Medal

#id, #issued_at

Instance Method Summary (collapse)

Methods inherited from CharacterMedal

#is_private?, #is_public?

Constructor Details

- (CharacterOtherCorporateMedal) initialize(elem)

:nodoc:



914
915
916
917
918
919
# File 'lib/reve/classes.rb', line 914

def initialize(elem) #:nodoc:
  super(elem)
  @corporation_id = elem["corporationID"].to_i
  @title = elem["title"]
  @description = elem["description"]
end

Instance Attribute Details

- (Object) corporation_id (readonly)

Returns the value of attribute corporation_id



913
914
915
# File 'lib/reve/classes.rb', line 913

def corporation_id
  @corporation_id
end

- (Object) description (readonly)

Returns the value of attribute description



913
914
915
# File 'lib/reve/classes.rb', line 913

def description
  @description
end

- (Object) title (readonly)

Returns the value of attribute title



913
914
915
# File 'lib/reve/classes.rb', line 913

def title
  @title
end