Class: Wowr::Classes::WeaponExpertise
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponExpertise
- Defined in:
- lib/wowr/character.rb
Overview
<expertise additional=“0” percent=“0.00” rating=“0” value=“0”/>
Instance Attribute Summary collapse
-
#additional ⇒ Object
readonly
Returns the value of attribute additional.
-
#percent ⇒ Object
readonly
Returns the value of attribute percent.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WeaponExpertise
constructor
A new instance of WeaponExpertise.
Constructor Details
#initialize(elem) ⇒ WeaponExpertise
Returns a new instance of WeaponExpertise.
518 519 520 521 522 523 |
# File 'lib/wowr/character.rb', line 518 def initialize(elem) @additional = elem[:additional].to_i @percent = elem[:percent].to_f @rating = elem[:rating].to_i @value = elem[:value].to_i end |
Instance Attribute Details
#additional ⇒ Object (readonly)
Returns the value of attribute additional.
516 517 518 |
# File 'lib/wowr/character.rb', line 516 def additional @additional end |
#percent ⇒ Object (readonly)
Returns the value of attribute percent.
516 517 518 |
# File 'lib/wowr/character.rb', line 516 def percent @percent end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
516 517 518 |
# File 'lib/wowr/character.rb', line 516 def @rating end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
516 517 518 |
# File 'lib/wowr/character.rb', line 516 def value @value end |