added version call ddragon
This commit is contained in:
@@ -6,7 +6,7 @@ require 'sightstone/modules/game_module'
|
|||||||
require 'sightstone/modules/league_module'
|
require 'sightstone/modules/league_module'
|
||||||
require 'sightstone/modules/stats_module'
|
require 'sightstone/modules/stats_module'
|
||||||
require 'sightstone/modules/team_module'
|
require 'sightstone/modules/team_module'
|
||||||
#require 'sightstone/modules/datadragon_module'
|
require 'sightstone/modules/datadragon_module'
|
||||||
|
|
||||||
# This is the main class of the Sightstone gem. All calls should be perfomrmed through this class.
|
# This is the main class of the Sightstone gem. All calls should be perfomrmed through this class.
|
||||||
# @attr [String] region The default region
|
# @attr [String] region The default region
|
||||||
@@ -21,7 +21,7 @@ class Sightstone
|
|||||||
|
|
||||||
attr_accessor :region
|
attr_accessor :region
|
||||||
attr_accessor :api_key
|
attr_accessor :api_key
|
||||||
attr_accessor :summoner, :champion, :game, :league, :stats, :team
|
attr_accessor :summoner, :champion, :game, :league, :stats, :team, :ddragon
|
||||||
|
|
||||||
# @param api_key [String] Riot developer api key
|
# @param api_key [String] Riot developer api key
|
||||||
# @param region [String] The default region to be used. See riots dev. page for supported regions.
|
# @param region [String] The default region to be used. See riots dev. page for supported regions.
|
||||||
@@ -35,6 +35,7 @@ class Sightstone
|
|||||||
@league = LeagueModule.new(self)
|
@league = LeagueModule.new(self)
|
||||||
@stats = StatsModule.new(self)
|
@stats = StatsModule.new(self)
|
||||||
@team = TeamModule.new(self)
|
@team = TeamModule.new(self)
|
||||||
|
@ddragon = DatadragonModule.new(self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user