Class: Nexus::Mastery
- Inherits:
-
Object
- Object
- Nexus::Mastery
- Defined in:
- lib/nexus/model/masteries.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.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prereq ⇒ Object
readonly
Returns the value of attribute prereq.
-
#sanitizedDescription ⇒ Object
readonly
Returns the value of attribute sanitizedDescription.
-
#tier ⇒ Object
readonly
Returns the value of attribute tier.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ Mastery
constructor
A new instance of Mastery.
Constructor Details
#initialize(params) ⇒ Mastery
Returns a new instance of Mastery.
40 41 42 43 44 45 46 47 48 |
# File 'lib/nexus/model/masteries.rb', line 40 def initialize(params) @id = params["id"] @name = params["name"] @description = params["description"] @sanitizedDescription = params["sanitizedDescription"] @level = params["ranks"] @prereq_id = params["prereq"] @image = params["image"] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def id @id end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def image @image end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def name @name end |
#prereq ⇒ Object (readonly)
Returns the value of attribute prereq.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def prereq @prereq end |
#sanitizedDescription ⇒ Object (readonly)
Returns the value of attribute sanitizedDescription.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def sanitizedDescription @sanitizedDescription end |
#tier ⇒ Object (readonly)
Returns the value of attribute tier.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def tier @tier end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
38 39 40 |
# File 'lib/nexus/model/masteries.rb', line 38 def type @type end |