Class: Starcraft2::Profile::Ladder

Inherits:
Object
  • Object
show all
Defined in:
lib/starcraft2/profile/ladder.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Ladder

Returns a new instance of Ladder.



6
7
8
# File 'lib/starcraft2/profile/ladder.rb', line 6

def initialize(options = {})
  Utils.load(self, options)
end

Instance Attribute Details

#divisionObject

Returns the value of attribute division.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def division
  @division
end

#ladder_idObject

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_nameObject

Returns the value of attribute ladder_name.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def ladder_name
  @ladder_name
end

#leagueObject

Returns the value of attribute league.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def league
  @league
end

#lossesObject

Returns the value of attribute losses.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def losses
  @losses
end

#match_making_queueObject

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

#rankObject

Returns the value of attribute rank.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def rank
  @rank
end

#showcaseObject

Returns the value of attribute showcase.



4
5
6
# File 'lib/starcraft2/profile/ladder.rb', line 4

def showcase
  @showcase
end

#winsObject

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