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
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#creator_id ⇒ Object
readonly
Returns the value of attribute creator_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Medal
Instance Method Summary collapse
-
#initialize(elem) ⇒ CorporateMedal
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ CorporateMedal
: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
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def created_at @created_at end |
#creator_id ⇒ Object (readonly)
Returns the value of attribute creator_id.
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def creator_id @creator_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
956 957 958 |
# File 'lib/reve/classes.rb', line 956 def title @title end |