Class: Wowr::Classes::WeaponSkill
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponSkill
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WeaponSkill
constructor
A new instance of WeaponSkill.
Constructor Details
#initialize(elem) ⇒ WeaponSkill
Returns a new instance of WeaponSkill.
455 456 457 458 |
# File 'lib/wowr/character.rb', line 455 def initialize(elem) @value = elem[:value].to_i == -1 ? nil : elem[:value].to_i @rating = elem[:rating].to_i end |
Instance Attribute Details
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
453 454 455 |
# File 'lib/wowr/character.rb', line 453 def @rating end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
453 454 455 |
# File 'lib/wowr/character.rb', line 453 def value @value end |