Class: Sightstone::Talent
- Inherits:
-
Object
- Object
- Sightstone::Talent
- Defined in:
- lib/sightstone/masterybook.rb
Overview
Class to represent a talent of a mastery page
Instance Attribute Summary collapse
-
#id ⇒ Numeric
id of the mastery.
-
#name ⇒ String
of the mastery.
-
#rank ⇒ Numeric
rank of the mastery.
Instance Method Summary collapse
-
#initialize(data) ⇒ Talent
constructor
A new instance of Talent.
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
#id ⇒ Numeric
id of the mastery
45 46 47 |
# File 'lib/sightstone/masterybook.rb', line 45 def id @id end |
#name ⇒ String
of the mastery
45 46 47 |
# File 'lib/sightstone/masterybook.rb', line 45 def name @name end |
#rank ⇒ Numeric
rank of the mastery
45 46 47 |
# File 'lib/sightstone/masterybook.rb', line 45 def rank @rank end |