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

- (CharacterMedals) initialize(current, other)

Returns a new instance of CharacterMedals



863
864
865
866
# File 'lib/reve/classes.rb', line 863

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

Instance Attribute Details

- (Object) current_corporation (readonly)

Returns the value of attribute current_corporation



862
863
864
# File 'lib/reve/classes.rb', line 862

def current_corporation
  @current_corporation
end

- (Object) other_corporation (readonly)

Returns the value of attribute other_corporation



862
863
864
# File 'lib/reve/classes.rb', line 862

def other_corporation
  @other_corporation
end