Class: Nexus::Rune
- Inherits:
-
Object
- Object
- Nexus::Rune
- Defined in:
- lib/nexus/model/runes.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sanitizedDescription ⇒ Object
readonly
Returns the value of attribute sanitizedDescription.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#tier ⇒ Object
readonly
Returns the value of attribute tier.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ Rune
constructor
A new instance of Rune.
Constructor Details
#initialize(params) ⇒ Rune
Returns a new instance of Rune.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nexus/model/runes.rb', line 39 def initialize(params) @id = params["id"] @name = params["name"] @description = params["description"] @sanitizedDescription = params["sanitizedDescription"] @tags = params["tags"] @image = params["image"] @stats = params["stats"] @tier = params["rune"]["tier"] @type = params["rune"]["type"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def id @id end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def image @image end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def name @name end |
#sanitizedDescription ⇒ Object (readonly)
Returns the value of attribute sanitizedDescription.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def sanitizedDescription @sanitizedDescription end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def stats @stats end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def @tags end |
#tier ⇒ Object (readonly)
Returns the value of attribute tier.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def tier @tier end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
37 38 39 |
# File 'lib/nexus/model/runes.rb', line 37 def type @type end |