Class: Wowr::Classes::SecondBar

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/classes.rb

Overview

Second stat bar, depends on character class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ SecondBar

Returns a new instance of SecondBar.



250
251
252
253
254
255
# File 'lib/wowr/classes.rb', line 250

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

#castingObject (readonly)

Returns the value of attribute casting.



248
249
250
# File 'lib/wowr/classes.rb', line 248

def casting
  @casting
end

#effectiveObject (readonly)

Returns the value of attribute effective.



248
249
250
# File 'lib/wowr/classes.rb', line 248

def effective
  @effective
end

#not_castingObject (readonly)

Returns the value of attribute not_casting.



248
249
250
# File 'lib/wowr/classes.rb', line 248

def not_casting
  @not_casting
end

#typeObject (readonly)

Returns the value of attribute type.



248
249
250
# File 'lib/wowr/classes.rb', line 248

def type
  @type
end