Class: Nexus::Summoner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Summoner

Returns a new instance of Summoner.



6
7
8
9
10
11
12
# File 'lib/nexus/model/summoner.rb', line 6

def initialize(params)
	@id = params["id"]
	@name = params["name"]
	@icon = params["profileIconId"]
	@level = params["summonerLevel"]
	@revisionDate = params["revisionDate"]
end

Instance Attribute Details

#iconObject (readonly)

Returns the value of attribute icon.



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

def icon
  @icon
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#levelObject (readonly)

Returns the value of attribute level.



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

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#revisionDateObject (readonly)

Returns the value of attribute revisionDate.



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

def revisionDate
  @revisionDate
end