Class: Starcraft2::Profile::Ladder
- Inherits:
-
Object
- Object
- Starcraft2::Profile::Ladder
- Defined in:
- lib/starcraft2/profile/ladder.rb
Instance Attribute Summary collapse
-
#division ⇒ Object
Returns the value of attribute division.
-
#ladder_id ⇒ Object
Returns the value of attribute ladder_id.
-
#ladder_name ⇒ Object
Returns the value of attribute ladder_name.
-
#league ⇒ Object
Returns the value of attribute league.
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#match_making_queue ⇒ Object
Returns the value of attribute match_making_queue.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#showcase ⇒ Object
Returns the value of attribute showcase.
-
#wins ⇒ Object
Returns the value of attribute wins.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Ladder
constructor
A new instance of Ladder.
Constructor Details
#initialize(options = {}) ⇒ Ladder
Returns a new instance of Ladder.
6 7 8 |
# File 'lib/starcraft2/profile/ladder.rb', line 6 def initialize( = {}) Utils.load(self, ) end |
Instance Attribute Details
#division ⇒ Object
Returns the value of attribute division.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def division @division end |
#ladder_id ⇒ Object
Returns the value of attribute ladder_id.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def ladder_id @ladder_id end |
#ladder_name ⇒ Object
Returns the value of attribute ladder_name.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def ladder_name @ladder_name end |
#league ⇒ Object
Returns the value of attribute league.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def league @league end |
#losses ⇒ Object
Returns the value of attribute losses.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def losses @losses end |
#match_making_queue ⇒ Object
Returns the value of attribute match_making_queue.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def match_making_queue @match_making_queue end |
#rank ⇒ Object
Returns the value of attribute rank.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def rank @rank end |
#showcase ⇒ Object
Returns the value of attribute showcase.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def showcase @showcase end |
#wins ⇒ Object
Returns the value of attribute wins.
4 5 6 |
# File 'lib/starcraft2/profile/ladder.rb', line 4 def wins @wins end |
Class Method Details
.build(ladders) ⇒ Object
10 11 12 13 14 |
# File 'lib/starcraft2/profile/ladder.rb', line 10 def self.build(ladders) ladders.map do |l| new(l) end end |