Class: Lol::Champion

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

Instance Attribute Summary collapse

Attributes inherited from Model

#raw

Method Summary

Methods inherited from Model

#initialize, #inspect

Constructor Details

This class inherits a constructor from Lol::Model

Instance Attribute Details

#activetrue, false

Returns:

  • (true)

    if the Champion is active

  • (false)

    if the Champion is disabled



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

def active
  @active
end

#attack_rankFixnum

Returns attack rank of Champion.

Returns:

  • (Fixnum)

    attack rank of Champion



18
19
20
# File 'lib/lol/champion.rb', line 18

def attack_rank
  @attack_rank
end

#bot_enabledtrue, false

Returns:

  • (true)

    if the Champion is enabled in custom bot games

  • (false)

    if the Champion is disabled in custom bot games



35
36
37
# File 'lib/lol/champion.rb', line 35

def bot_enabled
  @bot_enabled
end

#bot_mm_enabledtrue, false

Returns:

  • (true)

    if the Champion is enabled in match made bot games

  • (false)

    if the Champion is disabled in match made bot games



45
46
47
# File 'lib/lol/champion.rb', line 45

def bot_mm_enabled
  @bot_mm_enabled
end

#defense_rankFixnum

Returns defense rank of Champion.

Returns:

  • (Fixnum)

    defense rank of Champion



22
23
24
# File 'lib/lol/champion.rb', line 22

def defense_rank
  @defense_rank
end

#difficulty_rankFixnum

Returns difficulty rank of Champion.

Returns:

  • (Fixnum)

    difficulty rank of Champion



30
31
32
# File 'lib/lol/champion.rb', line 30

def difficulty_rank
  @difficulty_rank
end

#free_to_playtrue, false

Returns:

  • (true)

    if the Champion is currently free to play

  • (false)

    if the Champion isn’t currently free to play



40
41
42
# File 'lib/lol/champion.rb', line 40

def free_to_play
  @free_to_play
end

#idFixnum

Returns id of Champion.

Returns:

  • (Fixnum)

    id of Champion



5
6
7
# File 'lib/lol/champion.rb', line 5

def id
  @id
end

#magic_rankFixnum

Returns magic rank of Champion.

Returns:

  • (Fixnum)

    magic rank of Champion



26
27
28
# File 'lib/lol/champion.rb', line 26

def magic_rank
  @magic_rank
end

#nameString

Returns name of Champion.

Returns:

  • (String)

    name of Champion



9
10
11
# File 'lib/lol/champion.rb', line 9

def name
  @name
end

#ranked_play_enabledtrue, false

Returns:

  • (true)

    if the Champion is enabled in ranked play

  • (false)

    if the Champion is disabled in ranked play



50
51
52
# File 'lib/lol/champion.rb', line 50

def ranked_play_enabled
  @ranked_play_enabled
end