Class: Sightstone::Champion

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/champion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

Returns the value of attribute active.



15
16
17
# File 'lib/sightstone/champion.rb', line 15

def active
  @active
end

#attackRankObject

Returns the value of attribute attackRank.



15
16
17
# File 'lib/sightstone/champion.rb', line 15

def attackRank
  @attackRank
end

#botEnabledObject

Returns the value of attribute botEnabled.



15
16
17
# File 'lib/sightstone/champion.rb', line 15

def botEnabled
  @botEnabled
end

#botMmEnabledObject

Returns the value of attribute botMmEnabled.



15
16
17
# File 'lib/sightstone/champion.rb', line 15

def botMmEnabled
  @botMmEnabled
end

#defenseRankObject

Returns the value of attribute defenseRank.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def defenseRank
  @defenseRank
end

#difficultyRankObject

Returns the value of attribute difficultyRank.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def difficultyRank
  @difficultyRank
end

#freeToPlayObject

Returns the value of attribute freeToPlay.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def freeToPlay
  @freeToPlay
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def id
  @id
end

#magicRankObject

Returns the value of attribute magicRank.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def magicRank
  @magicRank
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/sightstone/champion.rb', line 16

def name
  @name
end

#rankedPlayEnabledboolean

Ranked play enabled flag.

Returns:

  • (boolean)

    the current value of rankedPlayEnabled



14
15
16
# File 'lib/sightstone/champion.rb', line 14

def rankedPlayEnabled
  @rankedPlayEnabled
end