Class: Starcraft2::Profile::NonRank

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ NonRank

Returns a new instance of NonRank.



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

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

Instance Attribute Details

#games_playedObject

Returns the value of attribute games_played.



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

def games_played
  @games_played
end

#mmqObject

Returns the value of attribute mmq.



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

def mmq
  @mmq
end

Class Method Details

.build(non_rank_data) ⇒ Object



10
11
12
13
14
# File 'lib/starcraft2/profile/non_rank.rb', line 10

def self.build(non_rank_data)
  non_rank_data.map do |nr|
    new(nr)
  end
end