Class: Starcraft2::Profile::SwarmLevels

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SwarmLevels

Returns a new instance of SwarmLevels.



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

def initialize(options = {})
  Utils.load(self, options, {:terran => SwarmRace, :zerg => SwarmRace, :protoss => SwarmRace})
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



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

def level
  @level
end

#protossObject

Returns the value of attribute protoss.



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

def protoss
  @protoss
end

#terranObject

Returns the value of attribute terran.



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

def terran
  @terran
end

#zergObject

Returns the value of attribute zerg.



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

def zerg
  @zerg
end