Class: Nexus::Summoner
- Inherits:
-
Object
- Object
- Nexus::Summoner
- Defined in:
- lib/nexus/model/summoner.rb
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#revisionDate ⇒ Object
readonly
Returns the value of attribute revisionDate.
Instance Method Summary collapse
-
#initialize(params) ⇒ Summoner
constructor
A new instance of Summoner.
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
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
4 5 6 |
# File 'lib/nexus/model/summoner.rb', line 4 def icon @icon end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/nexus/model/summoner.rb', line 4 def id @id end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
4 5 6 |
# File 'lib/nexus/model/summoner.rb', line 4 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nexus/model/summoner.rb', line 4 def name @name end |
#revisionDate ⇒ Object (readonly)
Returns the value of attribute revisionDate.
4 5 6 |
# File 'lib/nexus/model/summoner.rb', line 4 def revisionDate @revisionDate end |