Class: RubyGg::Champion
- Inherits:
-
Object
- Object
- RubyGg::Champion
- Defined in:
- lib/ruby_gg/champion.rb
Instance Attribute Summary collapse
-
#champion_url ⇒ Object
readonly
Returns the value of attribute champion_url.
Instance Method Summary collapse
-
#initialize(api_key, region) ⇒ Champion
constructor
Initializing the Challenger Instance.
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_url ⇒ Object (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 |