Class: Reve::Classes::Medal

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

Overview

Parent class for Medals Attributes:

  • id ( Fixnum ) - ID for the Medal

  • issued_at ( Time ) - When the Medal was issued (Note: Not valid/present on the CorporateMedal)

See Also: CharacterMedal, CharacterOtherCorporateMedal, CorporateMemberMedal, CorporateMedal

Direct Known Subclasses

CharacterMedal, CorporateMedal, CorporateMemberMedal

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Medal) initialize(elem)

:nodoc:



876
877
878
879
# File 'lib/reve/classes.rb', line 876

def initialize(elem) #:nodoc:
  @id = elem["medalID"].to_i
  @issued_at = elem["issued"].to_time
end

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



875
876
877
# File 'lib/reve/classes.rb', line 875

def id
  @id
end

- (Object) issued_at (readonly)

Returns the value of attribute issued_at



875
876
877
# File 'lib/reve/classes.rb', line 875

def issued_at
  @issued_at
end