Class: Wowr::Classes::WeaponExpertise

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

Overview

<expertise additional=“0” percent=“0.00” rating=“0” value=“0”/>

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponExpertise

Returns a new instance of WeaponExpertise.



518
519
520
521
522
523
# File 'lib/wowr/character.rb', line 518

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

Instance Attribute Details

#additionalObject (readonly)

Returns the value of attribute additional.



516
517
518
# File 'lib/wowr/character.rb', line 516

def additional
  @additional
end

#percentObject (readonly)

Returns the value of attribute percent.



516
517
518
# File 'lib/wowr/character.rb', line 516

def percent
  @percent
end

#ratingObject (readonly)

Returns the value of attribute rating.



516
517
518
# File 'lib/wowr/character.rb', line 516

def rating
  @rating
end

#valueObject (readonly)

Returns the value of attribute value.



516
517
518
# File 'lib/wowr/character.rb', line 516

def value
  @value
end