Class: Nexus::Champion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Champion

Returns a new instance of Champion.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/nexus/model/champion.rb', line 6

def initialize(params)		
	@id = params["id"]			
	@key = params["key"]
	@name = params["name"]
	@title = params["title"]						
	@image = params["image"]						
	@skins = params["skins"]						
	@lore = params["lore"]						
	@blurb = params["blurb"]						
	@allytips = params["allytips"]						
	@enemytips = params["enemytips"]			
	@tags = params["tags"]			
	@partype = params["partype"]			
	@info = params["info"]
	@stats = params["stats"]
	@spells = params["spells"]
end

Instance Attribute Details

#allytipsObject (readonly)

Returns the value of attribute allytips.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def allytips
  @allytips
end

#blurbObject (readonly)

Returns the value of attribute blurb.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def blurb
  @blurb
end

#enemytipsObject (readonly)

Returns the value of attribute enemytips.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def enemytips
  @enemytips
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def id
  @id
end

#imageObject (readonly)

Returns the value of attribute image.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def image
  @image
end

#infoObject (readonly)

Returns the value of attribute info.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def info
  @info
end

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def key
  @key
end

#loreObject (readonly)

Returns the value of attribute lore.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def lore
  @lore
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def name
  @name
end

#partypeObject (readonly)

Returns the value of attribute partype.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def partype
  @partype
end

#skinsObject (readonly)

Returns the value of attribute skins.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def skins
  @skins
end

#spellsObject (readonly)

Returns the value of attribute spells.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def spells
  @spells
end

#statsObject (readonly)

Returns the value of attribute stats.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def stats
  @stats
end

#tagsObject (readonly)

Returns the value of attribute tags.



4
5
6
# File 'lib/nexus/model/champion.rb', line 4

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/nexus/model/champion.rb', line 3

def title
  @title
end