Class: RubyGg::Champion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, region) ⇒ Champion

Initializing the Challenger Instance.



8
9
10
11
12
13
# File 'lib/ruby_gg/champion.rb', line 8

def initialize(api_key, region) #Initializing the Challenger Instance. 
    @api_key = api_key
    @region = region
    @base_url = "https://#{@region}.api.riotgames.com"
    @champion_url = "/lol/league/v3/challengerleagues/by-queue/"
end

Instance Attribute Details

#champion_urlObject (readonly)

Returns the value of attribute champion_url.



6
7
8
# File 'lib/ruby_gg/champion.rb', line 6

def champion_url
  @champion_url
end