Class: Wowr::Classes::WeaponCritChance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponCritChance

Returns a new instance of WeaponCritChance.



507
508
509
510
511
# File 'lib/wowr/character.rb', line 507

def initialize(elem)
	@percent 			= elem[:percent].to_f
	@plus_percent = elem[:plusPercent].to_f
	@rating 			= elem[:rating].to_i
end

Instance Attribute Details

#percentObject (readonly)

Returns the value of attribute percent.



505
506
507
# File 'lib/wowr/character.rb', line 505

def percent
  @percent
end

#plus_percentObject (readonly)

Returns the value of attribute plus_percent.



505
506
507
# File 'lib/wowr/character.rb', line 505

def plus_percent
  @plus_percent
end

#ratingObject (readonly)

Returns the value of attribute rating.



505
506
507
# File 'lib/wowr/character.rb', line 505

def rating
  @rating
end