Class: Starcraft2::Profile::DetailedSeason
- Inherits:
-
Object
- Object
- Starcraft2::Profile::DetailedSeason
- Defined in:
- lib/starcraft2/profile/detailed_season.rb
Instance Attribute Summary collapse
-
#characters ⇒ Object
Returns the value of attribute characters.
-
#ladder ⇒ Object
Returns the value of attribute ladder.
-
#non_ranked ⇒ Object
Returns the value of attribute non_ranked.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DetailedSeason
constructor
A new instance of DetailedSeason.
Constructor Details
#initialize(options = {}) ⇒ DetailedSeason
Returns a new instance of DetailedSeason.
6 7 8 |
# File 'lib/starcraft2/profile/detailed_season.rb', line 6 def initialize( = {}) Utils.load(self, , {}, {:ladder => Ladder, :characters => ::Starcraft2::Character, :non_ranked => NonRank}) end |
Instance Attribute Details
#characters ⇒ Object
Returns the value of attribute characters.
4 5 6 |
# File 'lib/starcraft2/profile/detailed_season.rb', line 4 def characters @characters end |
#ladder ⇒ Object
Returns the value of attribute ladder.
4 5 6 |
# File 'lib/starcraft2/profile/detailed_season.rb', line 4 def ladder @ladder end |
#non_ranked ⇒ Object
Returns the value of attribute non_ranked.
4 5 6 |
# File 'lib/starcraft2/profile/detailed_season.rb', line 4 def non_ranked @non_ranked end |
Class Method Details
.build(detailed_season) ⇒ Object
10 11 12 13 14 |
# File 'lib/starcraft2/profile/detailed_season.rb', line 10 def self.build(detailed_season) detailed_season.map do |ds| new(ds) end end |