Class: D3api::HeroStats
- Inherits:
-
Object
- Object
- D3api::HeroStats
- Defined in:
- lib/d3api/hero/stats.rb
Instance Attribute Summary collapse
-
#arcane_resist ⇒ Object
Returns the value of attribute arcane_resist.
-
#armor ⇒ Object
Returns the value of attribute armor.
-
#attack_speed ⇒ Object
Returns the value of attribute attack_speed.
-
#block_amount_max ⇒ Object
Returns the value of attribute block_amount_max.
-
#block_amount_min ⇒ Object
Returns the value of attribute block_amount_min.
-
#block_chance ⇒ Object
Returns the value of attribute block_chance.
-
#cold_resist ⇒ Object
Returns the value of attribute cold_resist.
-
#crit_chance ⇒ Object
Returns the value of attribute crit_chance.
-
#crit_damage ⇒ Object
Returns the value of attribute crit_damage.
-
#damage ⇒ Object
Returns the value of attribute damage.
-
#damage_increase ⇒ Object
Returns the value of attribute damage_increase.
-
#damage_reduction ⇒ Object
Returns the value of attribute damage_reduction.
-
#dexterity ⇒ Object
Returns the value of attribute dexterity.
-
#fire_resist ⇒ Object
Returns the value of attribute fire_resist.
-
#gold_find ⇒ Object
Returns the value of attribute gold_find.
-
#intelligence ⇒ Object
Returns the value of attribute intelligence.
-
#life ⇒ Object
Returns the value of attribute life.
-
#life_on_hit ⇒ Object
Returns the value of attribute life_on_hit.
-
#life_per_kill ⇒ Object
Returns the value of attribute life_per_kill.
-
#life_steal ⇒ Object
Returns the value of attribute life_steal.
-
#lightning_resist ⇒ Object
Returns the value of attribute lightning_resist.
-
#magic_find ⇒ Object
Returns the value of attribute magic_find.
-
#physical_resist ⇒ Object
Returns the value of attribute physical_resist.
-
#poison_resist ⇒ Object
Returns the value of attribute poison_resist.
-
#primary_resource ⇒ Object
Returns the value of attribute primary_resource.
-
#secondary_resource ⇒ Object
Returns the value of attribute secondary_resource.
-
#strength ⇒ Object
Returns the value of attribute strength.
-
#thorns ⇒ Object
Returns the value of attribute thorns.
-
#vitality ⇒ Object
Returns the value of attribute vitality.
Instance Method Summary collapse
-
#initialize(stat_values) ⇒ HeroStats
constructor
A new instance of HeroStats.
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_resist ⇒ Object
Returns the value of attribute arcane_resist.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def arcane_resist @arcane_resist end |
#armor ⇒ Object
Returns the value of attribute armor.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def armor @armor end |
#attack_speed ⇒ Object
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_max ⇒ Object
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_min ⇒ Object
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_chance ⇒ Object
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_resist ⇒ Object
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_chance ⇒ Object
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_damage ⇒ Object
Returns the value of attribute crit_damage.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def crit_damage @crit_damage end |
#damage ⇒ Object
Returns the value of attribute damage.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def damage @damage end |
#damage_increase ⇒ Object
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_reduction ⇒ Object
Returns the value of attribute damage_reduction.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def damage_reduction @damage_reduction end |
#dexterity ⇒ Object
Returns the value of attribute dexterity.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def dexterity @dexterity end |
#fire_resist ⇒ Object
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_find ⇒ Object
Returns the value of attribute gold_find.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def gold_find @gold_find end |
#intelligence ⇒ Object
Returns the value of attribute intelligence.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def intelligence @intelligence end |
#life ⇒ Object
Returns the value of attribute life.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def life @life end |
#life_on_hit ⇒ Object
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_kill ⇒ Object
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_steal ⇒ Object
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_resist ⇒ Object
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_find ⇒ Object
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_resist ⇒ Object
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_resist ⇒ Object
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_resource ⇒ Object
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_resource ⇒ Object
Returns the value of attribute secondary_resource.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def secondary_resource @secondary_resource end |
#strength ⇒ Object
Returns the value of attribute strength.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def strength @strength end |
#thorns ⇒ Object
Returns the value of attribute thorns.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def thorns @thorns end |
#vitality ⇒ Object
Returns the value of attribute vitality.
3 4 5 |
# File 'lib/d3api/hero/stats.rb', line 3 def vitality @vitality end |