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.



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

#castingObject (readonly)

Returns the value of attribute casting.



315
316
317
# File 'lib/wowr/character.rb', line 315

def casting
  @casting
end

#effectiveObject (readonly)

Returns the value of attribute effective.



315
316
317
# File 'lib/wowr/character.rb', line 315

def effective
  @effective
end

#not_castingObject (readonly)

Returns the value of attribute not_casting.



315
316
317
# File 'lib/wowr/character.rb', line 315

def not_casting
  @not_casting
end

#typeObject (readonly)

Returns the value of attribute type.



315
316
317
# File 'lib/wowr/character.rb', line 315

def type
  @type
end