Class: Reve::Classes::CharacterMedals

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

Overview

Container for the CharacterMedal since there's two kinds returned in XML Attributes:

  • current_corporation ( [ CharacterMedal ] ) - Array of CharacterMedal for the Corporation this Character is currently in

  • other_corporation ( [ CharacterOtherCorporateMedal ] ) - Array of CharacterOtherCorporateMedal from other Corporations

See also: Medal, CharacterMedal, Reve::API#character_medals

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(current, other) ⇒ CharacterMedals



908
909
910
911
# File 'lib/reve/classes.rb', line 908

def initialize(current, other)
  @current_corporation = current
  @other_corporation = other
end

Instance Attribute Details

#current_corporationObject (readonly)

Returns the value of attribute current_corporation



907
908
909
# File 'lib/reve/classes.rb', line 907

def current_corporation
  @current_corporation
end

#other_corporationObject (readonly)

Returns the value of attribute other_corporation



907
908
909
# File 'lib/reve/classes.rb', line 907

def other_corporation
  @other_corporation
end