Class: Sightstone::Sightstone
- Inherits:
-
Object
- Object
- Sightstone::Sightstone
- Defined in:
- lib/sightstone.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#champion ⇒ Object
Returns the value of attribute champion.
-
#ddragon ⇒ Object
Returns the value of attribute ddragon.
-
#game ⇒ Object
Returns the value of attribute game.
-
#league ⇒ Object
Returns the value of attribute league.
-
#region ⇒ Object
Returns the value of attribute region.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#summoner ⇒ Object
Returns the value of attribute summoner.
-
#team ⇒ Object
Returns the value of attribute team.
Instance Method Summary collapse
-
#initialize(api_key, region = 'euw') ⇒ Sightstone
constructor
A new instance of Sightstone.
Constructor Details
#initialize(api_key, region = 'euw') ⇒ Sightstone
Returns a new instance of Sightstone.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/sightstone.rb', line 30 def initialize(api_key, region='euw') @api_key = api_key @region = region @summoner = SummonerModule.new(self) @champion = ChampionModule.new(self) @game = GameModule.new(self) @league = LeagueModule.new(self) @stats = StatsModule.new(self) @team = TeamModule.new(self) @ddragon = DatadragonModule.new(self) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
25 26 27 |
# File 'lib/sightstone.rb', line 25 def api_key @api_key end |
#champion ⇒ Object
Returns the value of attribute champion.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def champion @champion end |
#ddragon ⇒ Object
Returns the value of attribute ddragon.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def ddragon @ddragon end |
#game ⇒ Object
Returns the value of attribute game.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def game @game end |
#league ⇒ Object
Returns the value of attribute league.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def league @league end |
#region ⇒ Object
Returns the value of attribute region.
24 25 26 |
# File 'lib/sightstone.rb', line 24 def region @region end |
#stats ⇒ Object
Returns the value of attribute stats.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def stats @stats end |
#summoner ⇒ Object
Returns the value of attribute summoner.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def summoner @summoner end |
#team ⇒ Object
Returns the value of attribute team.
26 27 28 |
# File 'lib/sightstone.rb', line 26 def team @team end |