Class: Wowr::Classes::WeaponSkill

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponSkill

Returns a new instance of WeaponSkill.



455
456
457
458
# File 'lib/wowr/character.rb', line 455

def initialize(elem)
	@value 	= elem[:value].to_i == -1 ? nil : elem[:value].to_i
	@rating = elem[:rating].to_i
end

Instance Attribute Details

#ratingObject (readonly)

Returns the value of attribute rating.



453
454
455
# File 'lib/wowr/character.rb', line 453

def rating
  @rating
end

#valueObject (readonly)

Returns the value of attribute value.



453
454
455
# File 'lib/wowr/character.rb', line 453

def value
  @value
end