Class: Reve::Classes::CorporateMedal

Inherits:
Medal show all
Defined in:
lib/reve/classes.rb

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

Attributes inherited from Medal

#id, #issued_at

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ CorporateMedal

:nodoc:



1002
1003
1004
1005
1006
1007
1008
# File 'lib/reve/classes.rb', line 1002

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_atObject (readonly)

Returns the value of attribute created_at



1001
1002
1003
# File 'lib/reve/classes.rb', line 1001

def created_at
  @created_at
end

#creator_idObject (readonly)

Returns the value of attribute creator_id



1001
1002
1003
# File 'lib/reve/classes.rb', line 1001

def creator_id
  @creator_id
end

#descriptionObject (readonly)

Returns the value of attribute description



1001
1002
1003
# File 'lib/reve/classes.rb', line 1001

def description
  @description
end

#titleObject (readonly)

Returns the value of attribute title



1001
1002
1003
# File 'lib/reve/classes.rb', line 1001

def title
  @title
end