Class: Reve::Classes::CorporateMedal
Overview
The medals a Corporation can give out. Attributes
-
title ( String ) - Title that this CorporateMedal gives
-
creator_id ( Fixnum ) - Who created the CorporateMedal
-
description ( String ) Description of the CorporateMedal
-
created_at ( Time ) - When the CorporateMedal was created.
See Also: Medal, CharacterMedal, CharacterOtherCorporateMedal, CorporateMemberMedal,
Instance Attribute Summary (collapse)
-
- (Object) created_at
readonly
Returns the value of attribute created_at.
-
- (Object) creator_id
readonly
Returns the value of attribute creator_id.
-
- (Object) description
readonly
Returns the value of attribute description.
-
- (Object) title
readonly
Returns the value of attribute title.
Attributes inherited from Medal
Instance Method Summary (collapse)
-
- (CorporateMedal) initialize(elem)
constructor
:nodoc:.
Constructor Details
- (CorporateMedal) initialize(elem)
:nodoc:
957 958 959 960 961 962 963 |
# File 'lib/reve/classes.rb', line 957 def initialize(elem) #:nodoc: super(elem) @title = elem["title"] @creator_id = elem["creatorID"].to_i @description = elem["description"] @created_at = elem["created"].to_time end |
Instance Attribute Details
- (Object) created_at (readonly)
Returns the value of attribute created_at
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def created_at @created_at end |
- (Object) creator_id (readonly)
Returns the value of attribute creator_id
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def creator_id @creator_id end |
- (Object) description (readonly)
Returns the value of attribute description
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def description @description end |
- (Object) title (readonly)
Returns the value of attribute title
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def title @title end |