Class: Nexus::Champion
- Inherits:
-
Object
- Object
- Nexus::Champion
- Defined in:
- lib/nexus/model/champion.rb
Instance Attribute Summary collapse
-
#allytips ⇒ Object
readonly
Returns the value of attribute allytips.
-
#blurb ⇒ Object
readonly
Returns the value of attribute blurb.
-
#enemytips ⇒ Object
readonly
Returns the value of attribute enemytips.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#lore ⇒ Object
readonly
Returns the value of attribute lore.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#partype ⇒ Object
readonly
Returns the value of attribute partype.
-
#skins ⇒ Object
readonly
Returns the value of attribute skins.
-
#spells ⇒ Object
readonly
Returns the value of attribute spells.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(params) ⇒ Champion
constructor
A new instance of Champion.
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
#allytips ⇒ Object (readonly)
Returns the value of attribute allytips.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def allytips @allytips end |
#blurb ⇒ Object (readonly)
Returns the value of attribute blurb.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def blurb @blurb end |
#enemytips ⇒ Object (readonly)
Returns the value of attribute enemytips.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def enemytips @enemytips end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def id @id end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def image @image end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def info @info end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def key @key end |
#lore ⇒ Object (readonly)
Returns the value of attribute lore.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def lore @lore end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def name @name end |
#partype ⇒ Object (readonly)
Returns the value of attribute partype.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def partype @partype end |
#skins ⇒ Object (readonly)
Returns the value of attribute skins.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def skins @skins end |
#spells ⇒ Object (readonly)
Returns the value of attribute spells.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def spells @spells end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def stats @stats end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
4 5 6 |
# File 'lib/nexus/model/champion.rb', line 4 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/nexus/model/champion.rb', line 3 def title @title end |