Class: Rune
- Inherits:
-
Object
- Object
- Rune
- Defined in:
- lib/sightstone/runebook.rb
Instance Attribute Summary (collapse)
-
- (Object) description
Returns the value of attribute description.
-
- (Object) id
Returns the value of attribute id.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) tier
Returns the value of attribute tier.
Instance Method Summary (collapse)
-
- (Rune) initialize(data)
constructor
A new instance of Rune.
Constructor Details
- (Rune) initialize(data)
Returns a new instance of Rune
31 32 33 34 35 36 |
# File 'lib/sightstone/runebook.rb', line 31 def initialize(data) @id = data['id'] @description = data['description'] @name = data['name'] @tier = data['tier'] end |
Instance Attribute Details
- (Object) description
Returns the value of attribute description
29 30 31 |
# File 'lib/sightstone/runebook.rb', line 29 def description @description end |
- (Object) id
Returns the value of attribute id
29 30 31 |
# File 'lib/sightstone/runebook.rb', line 29 def id @id end |
- (Object) name
Returns the value of attribute name
29 30 31 |
# File 'lib/sightstone/runebook.rb', line 29 def name @name end |
- (Object) tier
Returns the value of attribute tier
29 30 31 |
# File 'lib/sightstone/runebook.rb', line 29 def tier @tier end |