Class: Sightstone::Talent

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/masterybook.rb

Overview

Class to represent a talent of a mastery page

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Talent

Returns a new instance of Talent.



48
49
50
51
52
# File 'lib/sightstone/masterybook.rb', line 48

def initialize(data)
  @id = data['id']
  @name = data['name']
  @rank = data['rank']
end

Instance Attribute Details

#idNumeric

id of the mastery

Returns:

  • (Numeric)

    the current value of id



45
46
47
# File 'lib/sightstone/masterybook.rb', line 45

def id
  @id
end

#nameString

of the mastery

Returns:

  • (String)

    the current value of name



45
46
47
# File 'lib/sightstone/masterybook.rb', line 45

def name
  @name
end

#rankNumeric

rank of the mastery

Returns:

  • (Numeric)

    the current value of rank



45
46
47
# File 'lib/sightstone/masterybook.rb', line 45

def rank
  @rank
end