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.
628 629 630 631 632 |
# File 'lib/wowr/character.rb', line 628 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.
626 627 628 |
# File 'lib/wowr/character.rb', line 626 def increase_percent @increase_percent end |
#percent ⇒ Object (readonly)
Returns the value of attribute percent.
626 627 628 |
# File 'lib/wowr/character.rb', line 626 def percent @percent end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
626 627 628 |
# File 'lib/wowr/character.rb', line 626 def @rating end |