Class: HonStats::Classes::Building

Inherits:
Object
  • Object
show all
Defined in:
lib/honstats/character.rb

Overview

Consilidated neutral creep stats

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Building

Returns a new instance of Building.



204
205
206
207
208
209
# File 'lib/honstats/character.rb', line 204

def initialize(data)
	@damage = HonStats::API.get_data("acc_bdmg", data).to_i
     @xp =     HonStats::API.get_data("acc_bdmgexp", data).to_i
     @raized = HonStats::API.get_data("acc_razed", data).to_i
     @gold =   HonStats::API.get_data("acc_bgold", data).to_i
end

Instance Attribute Details

#damageObject (readonly)

Returns the value of attribute damage.



202
203
204
# File 'lib/honstats/character.rb', line 202

def damage
  @damage
end

#goldObject (readonly)

Returns the value of attribute gold.



202
203
204
# File 'lib/honstats/character.rb', line 202

def gold
  @gold
end

#raizedObject (readonly)

Returns the value of attribute raized.



202
203
204
# File 'lib/honstats/character.rb', line 202

def raized
  @raized
end

#xpObject (readonly)

Returns the value of attribute xp.



202
203
204
# File 'lib/honstats/character.rb', line 202

def xp
  @xp
end