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:
914 915 916 917 918 919 920 |
# File 'lib/reve/classes.rb', line 914 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.
913 914 915 |
# File 'lib/reve/classes.rb', line 913 def created_at @created_at end |
#creator_id ⇒ Object (readonly)
Returns the value of attribute creator_id.
913 914 915 |
# File 'lib/reve/classes.rb', line 913 def creator_id @creator_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
913 914 915 |
# File 'lib/reve/classes.rb', line 913 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
913 914 915 |
# File 'lib/reve/classes.rb', line 913 def title @title end |