Class: Sightstone::Summoner
- Inherits:
-
Object
- Object
- Sightstone::Summoner
- Defined in:
- lib/sightstone/summoner.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#level ⇒ Integer
summoner level.
-
#name ⇒ Object
Returns the value of attribute name.
-
#profileIconId ⇒ Object
Returns the value of attribute profileIconId.
-
#revisionDate ⇒ Object
Returns the value of attribute revisionDate.
Instance Method Summary collapse
-
#initialize(data) ⇒ Summoner
constructor
A new instance of Summoner.
Constructor Details
#initialize(data) ⇒ Summoner
Returns a new instance of Summoner.
13 14 15 16 17 18 19 |
# File 'lib/sightstone/summoner.rb', line 13 def initialize(data) @name = data['name'] @id = data['id'] @profileIconId = data['profileIconId'] @revisionDate = data['revisionDate'] @level = data['summonerLevel'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/sightstone/summoner.rb', line 10 def id @id end |
#level ⇒ Integer
summoner level
8 9 10 |
# File 'lib/sightstone/summoner.rb', line 8 def level @level end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/sightstone/summoner.rb', line 10 def name @name end |
#profileIconId ⇒ Object
Returns the value of attribute profileIconId.
10 11 12 |
# File 'lib/sightstone/summoner.rb', line 10 def profileIconId @profileIconId end |
#revisionDate ⇒ Object
Returns the value of attribute revisionDate.
10 11 12 |
# File 'lib/sightstone/summoner.rb', line 10 def revisionDate @revisionDate end |