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

#initialize(elem) ⇒ CharacterOtherCorporateMedal

: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

#corporation_idObject (readonly)

Returns the value of attribute corporation_id.



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

def corporation_id
  @corporation_id
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end