Class: Nexus::PagesMasteries

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ PagesMasteries

Returns a new instance of PagesMasteries.



6
7
8
9
10
11
12
13
# File 'lib/nexus/model/masteries.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::MPage.new(p))
	end
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#pagesObject (readonly)

Returns the value of attribute pages.



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

def pages
  @pages
end