Class: Sightstone::Champion
- Inherits:
-
Object
- Object
- Sightstone::Champion
- Defined in:
- lib/sightstone/champion.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#attackRank ⇒ Object
Returns the value of attribute attackRank.
-
#botEnabled ⇒ Object
Returns the value of attribute botEnabled.
-
#botMmEnabled ⇒ Object
Returns the value of attribute botMmEnabled.
-
#defenseRank ⇒ Object
Returns the value of attribute defenseRank.
-
#difficultyRank ⇒ Object
Returns the value of attribute difficultyRank.
-
#freeToPlay ⇒ Object
Returns the value of attribute freeToPlay.
-
#id ⇒ Object
Returns the value of attribute id.
-
#magicRank ⇒ Object
Returns the value of attribute magicRank.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rankedPlayEnabled ⇒ boolean
Ranked play enabled flag.
Instance Method Summary collapse
-
#initialize(data) ⇒ Champion
constructor
A new instance of Champion.
Constructor Details
#initialize(data) ⇒ Champion
Returns a new instance of Champion.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/sightstone/champion.rb', line 18 def initialize(data) @active = data['active'] @attackRank = data['attackRank'] @botEnabled = data['botEnabled'] @defenseRank = data['defenseRank'] @difficultyRank = data['difficultyRank'] @freeToPlay = data['freeToPlay'] @id = data['id'] @magicRank = data['magicRank'] @name = data['name'] @rankedPlayEnabled = data['rankedPlayEnabled'] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
15 16 17 |
# File 'lib/sightstone/champion.rb', line 15 def active @active end |
#attackRank ⇒ Object
Returns the value of attribute attackRank.
15 16 17 |
# File 'lib/sightstone/champion.rb', line 15 def attackRank @attackRank end |
#botEnabled ⇒ Object
Returns the value of attribute botEnabled.
15 16 17 |
# File 'lib/sightstone/champion.rb', line 15 def botEnabled @botEnabled end |
#botMmEnabled ⇒ Object
Returns the value of attribute botMmEnabled.
15 16 17 |
# File 'lib/sightstone/champion.rb', line 15 def botMmEnabled @botMmEnabled end |
#defenseRank ⇒ Object
Returns the value of attribute defenseRank.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def defenseRank @defenseRank end |
#difficultyRank ⇒ Object
Returns the value of attribute difficultyRank.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def difficultyRank @difficultyRank end |
#freeToPlay ⇒ Object
Returns the value of attribute freeToPlay.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def freeToPlay @freeToPlay end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def id @id end |
#magicRank ⇒ Object
Returns the value of attribute magicRank.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def magicRank @magicRank end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/sightstone/champion.rb', line 16 def name @name end |
#rankedPlayEnabled ⇒ boolean
Ranked play enabled flag.
14 15 16 |
# File 'lib/sightstone/champion.rb', line 14 def rankedPlayEnabled @rankedPlayEnabled end |