Class: Sightstone::Rune
- Inherits:
-
Object
- Object
- Sightstone::Rune
- Defined in:
- lib/sightstone/runebook.rb
Overview
Class to represent a rune
Instance Attribute Summary collapse
-
#description ⇒ String
description.
-
#id ⇒ Numeric
ID of the rune.
-
#name ⇒ String
name of the rune.
-
#tier ⇒ Numeric
rune tier (1,2,3).
Instance Method Summary collapse
-
#initialize(data) ⇒ Rune
constructor
A new instance of Rune.
Constructor Details
#initialize(data) ⇒ Rune
Returns a new instance of Rune.
49 50 51 52 53 54 |
# File 'lib/sightstone/runebook.rb', line 49 def initialize(data) @id = data['id'] @description = data['description'] @name = data['name'] @tier = data['tier'] end |
Instance Attribute Details
#description ⇒ String
description
46 47 48 |
# File 'lib/sightstone/runebook.rb', line 46 def description @description end |
#id ⇒ Numeric
ID of the rune
46 47 48 |
# File 'lib/sightstone/runebook.rb', line 46 def id @id end |
#name ⇒ String
name of the rune
46 47 48 |
# File 'lib/sightstone/runebook.rb', line 46 def name @name end |
#tier ⇒ Numeric
rune tier (1,2,3)
46 47 48 |
# File 'lib/sightstone/runebook.rb', line 46 def tier @tier end |