Class: Wowr::Classes::DodgeParryBlock
- Inherits:
-
Object
- Object
- Wowr::Classes::DodgeParryBlock
- Defined in:
- lib/wowr/classes.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.
564 565 566 567 568 |
# File 'lib/wowr/classes.rb', line 564 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.
562 563 564 |
# File 'lib/wowr/classes.rb', line 562 def increase_percent @increase_percent end |
#percent ⇒ Object (readonly)
Returns the value of attribute percent.
562 563 564 |
# File 'lib/wowr/classes.rb', line 562 def percent @percent end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
562 563 564 |
# File 'lib/wowr/classes.rb', line 562 def @rating end |