Class: Summoner
- Inherits:
-
Object
- Object
- Summoner
- Defined in:
- lib/sightstone/summoner.rb
Overview
Class to represent a summoner
Instance Attribute Summary (collapse)
-
- (Long) id
summoner id (used for other calls).
-
- (Integer) level
summoner level.
-
- (String) name
name.
-
- (Integer) profileIconId
profile icon id of the summoner.
-
- (long) revisionDate
timestamp of latest data change.
Instance Method Summary (collapse)
-
- (Summoner) initialize(data)
constructor
A new instance of Summoner.
Constructor Details
- (Summoner) initialize(data)
Returns a new instance of Summoner
12 13 14 15 16 17 18 |
# File 'lib/sightstone/summoner.rb', line 12 def initialize(data) @name = data['name'] @id = data['id'] @profileIconId = data['profileIconId'] @revisionDate = data['revisionDate'] @level = data['summonerLevel'] end |
Instance Attribute Details
- (Long) id
summoner id (used for other calls)
7 8 9 |
# File 'lib/sightstone/summoner.rb', line 7 def id @id end |
- (Integer) level
summoner level
7 8 9 |
# File 'lib/sightstone/summoner.rb', line 7 def level @level end |
- (String) name
name
7 8 9 |
# File 'lib/sightstone/summoner.rb', line 7 def name @name end |
- (Integer) profileIconId
profile icon id of the summoner
7 8 9 |
# File 'lib/sightstone/summoner.rb', line 7 def profileIconId @profileIconId end |
- (long) revisionDate
timestamp of latest data change
7 8 9 |
# File 'lib/sightstone/summoner.rb', line 7 def revisionDate @revisionDate end |