Class: Talent
- Inherits:
-
Object
- Object
- Talent
- Defined in:
- lib/sightstone/masterybook.rb
Instance Attribute Summary (collapse)
-
- (Object) id
Returns the value of attribute id.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) rank
Returns the value of attribute rank.
Instance Method Summary (collapse)
-
- (Talent) initialize(data)
constructor
A new instance of Talent.
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 |