Class: Wowr::Classes::DodgeParryBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ DodgeParryBlock

Returns a new instance of DodgeParryBlock.



628
629
630
631
632
# File 'lib/wowr/character.rb', line 628

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

Instance Attribute Details

#increase_percentObject (readonly)

Returns the value of attribute increase_percent.



626
627
628
# File 'lib/wowr/character.rb', line 626

def increase_percent
  @increase_percent
end

#percentObject (readonly)

Returns the value of attribute percent.



626
627
628
# File 'lib/wowr/character.rb', line 626

def percent
  @percent
end

#ratingObject (readonly)

Returns the value of attribute rating.



626
627
628
# File 'lib/wowr/character.rb', line 626

def rating
  @rating
end