Class: Wowr::Classes::WeaponCritChance
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponCritChance
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#percent ⇒ Object
readonly
Returns the value of attribute percent.
-
#plus_percent ⇒ Object
readonly
Returns the value of attribute plus_percent.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WeaponCritChance
constructor
A new instance of WeaponCritChance.
Constructor Details
#initialize(elem) ⇒ WeaponCritChance
Returns a new instance of WeaponCritChance.
507 508 509 510 511 |
# File 'lib/wowr/character.rb', line 507 def initialize(elem) @percent = elem[:percent].to_f @plus_percent = elem[:plusPercent].to_f @rating = elem[:rating].to_i end |
Instance Attribute Details
#percent ⇒ Object (readonly)
Returns the value of attribute percent.
505 506 507 |
# File 'lib/wowr/character.rb', line 505 def percent @percent end |
#plus_percent ⇒ Object (readonly)
Returns the value of attribute plus_percent.
505 506 507 |
# File 'lib/wowr/character.rb', line 505 def plus_percent @plus_percent end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
505 506 507 |
# File 'lib/wowr/character.rb', line 505 def @rating end |