Class: Champion

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Champion) initialize(data)

Returns a new instance of Champion



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/sightstone/champion.rb', line 5

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

- (Object) active

Returns the value of attribute active



2
3
4
# File 'lib/sightstone/champion.rb', line 2

def active
  @active
end

- (Object) attackRank

Returns the value of attribute attackRank



2
3
4
# File 'lib/sightstone/champion.rb', line 2

def attackRank
  @attackRank
end

- (Object) botEnabled

Returns the value of attribute botEnabled



2
3
4
# File 'lib/sightstone/champion.rb', line 2

def botEnabled
  @botEnabled
end

- (Object) botMmEnabled

Returns the value of attribute botMmEnabled



2
3
4
# File 'lib/sightstone/champion.rb', line 2

def botMmEnabled
  @botMmEnabled
end

- (Object) defenseRank

Returns the value of attribute defenseRank



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def defenseRank
  @defenseRank
end

- (Object) difficultyRank

Returns the value of attribute difficultyRank



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def difficultyRank
  @difficultyRank
end

- (Object) freeToPlay

Returns the value of attribute freeToPlay



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def freeToPlay
  @freeToPlay
end

- (Object) id

Returns the value of attribute id



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def id
  @id
end

- (Object) magicRank

Returns the value of attribute magicRank



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def magicRank
  @magicRank
end

- (Object) name

Returns the value of attribute name



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def name
  @name
end

- (Object) rankedPlayEnabled

Returns the value of attribute rankedPlayEnabled



3
4
5
# File 'lib/sightstone/champion.rb', line 3

def rankedPlayEnabled
  @rankedPlayEnabled
end