Class: D3api::HeroStats

Inherits:
Object
  • Object
show all
Defined in:
lib/d3api/hero/stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stat_values) ⇒ HeroStats

Returns a new instance of HeroStats.



11
12
13
# File 'lib/d3api/hero/stats.rb', line 11

def initialize(stat_values)
  set_method(stat_values)
end

Instance Attribute Details

#arcane_resistObject

Returns the value of attribute arcane_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def arcane_resist
  @arcane_resist
end

#armorObject

Returns the value of attribute armor.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def armor
  @armor
end

#attack_speedObject

Returns the value of attribute attack_speed.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def attack_speed
  @attack_speed
end

#block_amount_maxObject

Returns the value of attribute block_amount_max.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def block_amount_max
  @block_amount_max
end

#block_amount_minObject

Returns the value of attribute block_amount_min.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def block_amount_min
  @block_amount_min
end

#block_chanceObject

Returns the value of attribute block_chance.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def block_chance
  @block_chance
end

#cold_resistObject

Returns the value of attribute cold_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def cold_resist
  @cold_resist
end

#crit_chanceObject

Returns the value of attribute crit_chance.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def crit_chance
  @crit_chance
end

#crit_damageObject

Returns the value of attribute crit_damage.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def crit_damage
  @crit_damage
end

#damageObject

Returns the value of attribute damage.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def damage
  @damage
end

#damage_increaseObject

Returns the value of attribute damage_increase.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def damage_increase
  @damage_increase
end

#damage_reductionObject

Returns the value of attribute damage_reduction.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def damage_reduction
  @damage_reduction
end

#dexterityObject

Returns the value of attribute dexterity.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def dexterity
  @dexterity
end

#fire_resistObject

Returns the value of attribute fire_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def fire_resist
  @fire_resist
end

#gold_findObject

Returns the value of attribute gold_find.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def gold_find
  @gold_find
end

#intelligenceObject

Returns the value of attribute intelligence.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def intelligence
  @intelligence
end

#lifeObject

Returns the value of attribute life.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def life
  @life
end

#life_on_hitObject

Returns the value of attribute life_on_hit.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def life_on_hit
  @life_on_hit
end

#life_per_killObject

Returns the value of attribute life_per_kill.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def life_per_kill
  @life_per_kill
end

#life_stealObject

Returns the value of attribute life_steal.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def life_steal
  @life_steal
end

#lightning_resistObject

Returns the value of attribute lightning_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def lightning_resist
  @lightning_resist
end

#magic_findObject

Returns the value of attribute magic_find.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def magic_find
  @magic_find
end

#physical_resistObject

Returns the value of attribute physical_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def physical_resist
  @physical_resist
end

#poison_resistObject

Returns the value of attribute poison_resist.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def poison_resist
  @poison_resist
end

#primary_resourceObject

Returns the value of attribute primary_resource.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def primary_resource
  @primary_resource
end

#secondary_resourceObject

Returns the value of attribute secondary_resource.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def secondary_resource
  @secondary_resource
end

#strengthObject

Returns the value of attribute strength.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def strength
  @strength
end

#thornsObject

Returns the value of attribute thorns.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def thorns
  @thorns
end

#vitalityObject

Returns the value of attribute vitality.



3
4
5
# File 'lib/d3api/hero/stats.rb', line 3

def vitality
  @vitality
end