class Sightstone::Champion
Class to represent a champion @attr [Boolean] active determines if champion is active @attr [Integer] attackRank attack rank @attr [Boolean] botEnabled Bot enabled flag (for custom games) @attr [Boolean] botMmEnabled Bot Match Made enabeld flag (for Coop/AI games) @attr [Integer] defenseRank Champion
defense rank. @attr [Integer] difficultyRank Champion
difficulty rank. @attr [Boolean] freeToPlay Indicates if the champion is free to play. Free to play champions are rotated periodically. @attr [Fixnum] id Champion
ID. @attr [Integer] magicRank Champion
magic rank. @attr [String] name Champion
name. @attr [boolean] rankedPlayEnabled Ranked play enabled flag.
Attributes
active[RW]
attackRank[RW]
botEnabled[RW]
botMmEnabled[RW]
defenseRank[RW]
difficultyRank[RW]
freeToPlay[RW]
id[RW]
magicRank[RW]
name[RW]
rankedPlayEnabled[RW]
Public Class Methods
new(data)
click to toggle source
# 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