Class: Nexus::PagesRunes
- Inherits:
-
Object
- Object
- Nexus::PagesRunes
- Defined in:
- lib/nexus/model/runes.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
Instance Method Summary collapse
-
#initialize(params) ⇒ PagesRunes
constructor
A new instance of PagesRunes.
Constructor Details
#initialize(params) ⇒ PagesRunes
Returns a new instance of PagesRunes.
6 7 8 9 10 11 12 13 |
# File 'lib/nexus/model/runes.rb', line 6 def initialize(params) @id = params["summonerId"] @name = Nexus.get_summoner_name(params["summonerId"].to_s) @pages = Array.new() params["pages"].each do |p| @pages.push(Nexus::RPage.new(p)) end end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/nexus/model/runes.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nexus/model/runes.rb', line 4 def name @name end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
4 5 6 |
# File 'lib/nexus/model/runes.rb', line 4 def pages @pages end |