Class: Wowr::Classes::SecondBar

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/character.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.



329
330
331
332
333
334
# File 'lib/wowr/character.rb', line 329

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.



327
328
329
# File 'lib/wowr/character.rb', line 327

def casting
  @casting
end

#effectiveObject (readonly)

Returns the value of attribute effective.



327
328
329
# File 'lib/wowr/character.rb', line 327

def effective
  @effective
end

#not_castingObject (readonly)

Returns the value of attribute not_casting.



327
328
329
# File 'lib/wowr/character.rb', line 327

def not_casting
  @not_casting
end

#typeObject (readonly)

Returns the value of attribute type.



327
328
329
# File 'lib/wowr/character.rb', line 327

def type
  @type
end