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



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

def active
  @active
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



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

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



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

def bot_mm_enabled
  @bot_mm_enabled
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



20
21
22
# File 'lib/lol/champion.rb', line 20

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

#ranked_play_enabledtrue, false

Returns:

  • (true)

    if the Champion is enabled in ranked play

  • (false)

    if the Champion is disabled in ranked play



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

def ranked_play_enabled
  @ranked_play_enabled
end