Class: Nexus::Mastery

Inherits:
Object
  • Object
show all
Defined in:
lib/nexus/model/masteries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def id
  @id
end

#imageObject (readonly)

Returns the value of attribute image.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def image
  @image
end

#levelObject (readonly)

Returns the value of attribute level.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def name
  @name
end

#prereqObject (readonly)

Returns the value of attribute prereq.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def prereq
  @prereq
end

#sanitizedDescriptionObject (readonly)

Returns the value of attribute sanitizedDescription.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def sanitizedDescription
  @sanitizedDescription
end

#tierObject (readonly)

Returns the value of attribute tier.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def tier
  @tier
end

#typeObject (readonly)

Returns the value of attribute type.



38
39
40
# File 'lib/nexus/model/masteries.rb', line 38

def type
  @type
end