Class: Wowr::Classes::SecondBar
- Inherits:
-
Object
- Object
- Wowr::Classes::SecondBar
- Defined in:
- lib/wowr/character.rb
Overview
Second stat bar, depends on character class
Instance Attribute Summary collapse
-
#casting ⇒ Object
readonly
Returns the value of attribute casting.
-
#effective ⇒ Object
readonly
Returns the value of attribute effective.
-
#not_casting ⇒ Object
readonly
Returns the value of attribute not_casting.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SecondBar
constructor
A new instance of SecondBar.
Constructor Details
#initialize(elem) ⇒ SecondBar
Returns a new instance of SecondBar.
317 318 319 320 321 322 |
# File 'lib/wowr/character.rb', line 317 def initialize(elem) @effective = elem[:effective].to_i @casting = elem[:casting].to_i == -1 ? nil : elem[:casting].to_i @not_casting = elem[:notCasting].to_i == -1 ? nil : elem[:notCasting].to_i @type = elem[:type] end |
Instance Attribute Details
#casting ⇒ Object (readonly)
Returns the value of attribute casting.
315 316 317 |
# File 'lib/wowr/character.rb', line 315 def casting @casting end |
#effective ⇒ Object (readonly)
Returns the value of attribute effective.
315 316 317 |
# File 'lib/wowr/character.rb', line 315 def effective @effective end |
#not_casting ⇒ Object (readonly)
Returns the value of attribute not_casting.
315 316 317 |
# File 'lib/wowr/character.rb', line 315 def not_casting @not_casting end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
315 316 317 |
# File 'lib/wowr/character.rb', line 315 def type @type end |