Class: Reve::Classes::CharacterOtherCorporateMedal
- Inherits:
-
CharacterMedal
- Object
- Medal
- CharacterMedal
- Reve::Classes::CharacterOtherCorporateMedal
- 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
-
#corporation_id ⇒ Object
readonly
Returns the value of attribute corporation_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from CharacterMedal
Attributes inherited from Medal
Instance Method Summary collapse
-
#initialize(elem) ⇒ CharacterOtherCorporateMedal
constructor
:nodoc:.
Methods inherited from CharacterMedal
Constructor Details
#initialize(elem) ⇒ CharacterOtherCorporateMedal
:nodoc:
871 872 873 874 875 876 |
# File 'lib/reve/classes.rb', line 871 def initialize(elem) #:nodoc: super(elem) @corporation_id = elem["corporationID"].to_i @title = elem["title"] @description = elem["description"] end |
Instance Attribute Details
#corporation_id ⇒ Object (readonly)
Returns the value of attribute corporation_id.
870 871 872 |
# File 'lib/reve/classes.rb', line 870 def corporation_id @corporation_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
870 871 872 |
# File 'lib/reve/classes.rb', line 870 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
870 871 872 |
# File 'lib/reve/classes.rb', line 870 def title @title end |