Class: Wowr::Classes::Skill

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

Overview

eg Daggers, Riding, Fishing, language

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Skill

Returns a new instance of Skill.



770
771
772
773
774
775
# File 'lib/wowr/character.rb', line 770

def initialize(elem)
	@key 		= elem[:key]
	@name 	= elem[:name]
	@value 	= elem[:value].to_i
	@max 		= elem[:max].to_i
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



766
767
768
# File 'lib/wowr/character.rb', line 766

def key
  @key
end

#maxObject (readonly)

Returns the value of attribute max.



766
767
768
# File 'lib/wowr/character.rb', line 766

def max
  @max
end

#nameObject (readonly) Also known as: to_s

Returns the value of attribute name.



766
767
768
# File 'lib/wowr/character.rb', line 766

def name
  @name
end

#valueObject (readonly) Also known as: to_i

Returns the value of attribute value.



766
767
768
# File 'lib/wowr/character.rb', line 766

def value
  @value
end