Class: Talent

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Talent) initialize(data)

Returns a new instance of Talent



31
32
33
34
35
# File 'lib/sightstone/masterybook.rb', line 31

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

Instance Attribute Details

- (Object) id

Returns the value of attribute id



29
30
31
# File 'lib/sightstone/masterybook.rb', line 29

def id
  @id
end

- (Object) name

Returns the value of attribute name



29
30
31
# File 'lib/sightstone/masterybook.rb', line 29

def name
  @name
end

- (Object) rank

Returns the value of attribute rank



29
30
31
# File 'lib/sightstone/masterybook.rb', line 29

def rank
  @rank
end