Class: HonStats::Classes::Building
- Inherits:
-
Object
- Object
- HonStats::Classes::Building
- Defined in:
- lib/honstats/character.rb
Overview
Consilidated neutral creep stats
Instance Attribute Summary collapse
-
#damage ⇒ Object
readonly
Returns the value of attribute damage.
-
#gold ⇒ Object
readonly
Returns the value of attribute gold.
-
#raized ⇒ Object
readonly
Returns the value of attribute raized.
-
#xp ⇒ Object
readonly
Returns the value of attribute xp.
Instance Method Summary collapse
-
#initialize(data) ⇒ Building
constructor
A new instance of Building.
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
#damage ⇒ Object (readonly)
Returns the value of attribute damage.
202 203 204 |
# File 'lib/honstats/character.rb', line 202 def damage @damage end |
#gold ⇒ Object (readonly)
Returns the value of attribute gold.
202 203 204 |
# File 'lib/honstats/character.rb', line 202 def gold @gold end |
#raized ⇒ Object (readonly)
Returns the value of attribute raized.
202 203 204 |
# File 'lib/honstats/character.rb', line 202 def raized @raized end |
#xp ⇒ Object (readonly)
Returns the value of attribute xp.
202 203 204 |
# File 'lib/honstats/character.rb', line 202 def xp @xp end |