Class: Wowr::Classes::DodgeParryBlock
- Inherits:
-
Object
- Object
- Wowr::Classes::DodgeParryBlock
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#increase_percent ⇒ Object
readonly
Returns the value of attribute increase_percent.
-
#percent ⇒ Object
readonly
Returns the value of attribute percent.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
Instance Method Summary collapse
-
#initialize(elem) ⇒ DodgeParryBlock
constructor
A new instance of DodgeParryBlock.
Constructor Details
#initialize(elem) ⇒ DodgeParryBlock
Returns a new instance of DodgeParryBlock.
650 651 652 653 654 |
# File 'lib/wowr/character.rb', line 650 def initialize(elem) @percent = elem[:percent].to_f @increase_percent = elem[:increasePercent].to_f @rating = elem[:rating].to_i end |
Instance Attribute Details
#increase_percent ⇒ Object (readonly)
Returns the value of attribute increase_percent.
648 649 650 |
# File 'lib/wowr/character.rb', line 648 def increase_percent @increase_percent end |
#percent ⇒ Object (readonly)
Returns the value of attribute percent.
648 649 650 |
# File 'lib/wowr/character.rb', line 648 def percent @percent end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
648 649 650 |
# File 'lib/wowr/character.rb', line 648 def @rating end |