Class: Nexus::Rune

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def id
  @id
end

#imageObject (readonly)

Returns the value of attribute image.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def image
  @image
end

#nameObject (readonly)

Returns the value of attribute name.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def name
  @name
end

#sanitizedDescriptionObject (readonly)

Returns the value of attribute sanitizedDescription.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def sanitizedDescription
  @sanitizedDescription
end

#statsObject (readonly)

Returns the value of attribute stats.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def stats
  @stats
end

#tagsObject (readonly)

Returns the value of attribute tags.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def tags
  @tags
end

#tierObject (readonly)

Returns the value of attribute tier.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def tier
  @tier
end

#typeObject (readonly)

Returns the value of attribute type.



37
38
39
# File 'lib/nexus/model/runes.rb', line 37

def type
  @type
end