Class: Nexus::PagesRunes

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pagesObject (readonly)

Returns the value of attribute pages.



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

def pages
  @pages
end