Class: Reve::Classes::CharacterMedals
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
-
#current_corporation ⇒ Object
readonly
Returns the value of attribute current_corporation.
-
#other_corporation ⇒ Object
readonly
Returns the value of attribute other_corporation.
Instance Method Summary collapse
-
#initialize(current, other) ⇒ CharacterMedals
constructor
A new instance of CharacterMedals.
Constructor Details
#initialize(current, other) ⇒ CharacterMedals
Returns a new instance of CharacterMedals.
820 821 822 823 |
# File 'lib/reve/classes.rb', line 820 def initialize(current, other) @current_corporation = current @other_corporation = other end |
Instance Attribute Details
#current_corporation ⇒ Object (readonly)
Returns the value of attribute current_corporation.
819 820 821 |
# File 'lib/reve/classes.rb', line 819 def current_corporation @current_corporation end |
#other_corporation ⇒ Object (readonly)
Returns the value of attribute other_corporation.
819 820 821 |
# File 'lib/reve/classes.rb', line 819 def other_corporation @other_corporation end |