Update README.md
This commit is contained in:
@@ -35,8 +35,7 @@ Lets find dyrus
|
|||||||
require 'sightstone'
|
require 'sightstone'
|
||||||
sightstone = Sightstone.new('your_api_key', 'na')
|
sightstone = Sightstone.new('your_api_key', 'na')
|
||||||
|
|
||||||
# gets the summoner by its name OR id
|
summoner = sightstone.summoner.summoner 'dyrus' # gets the summoner by its name OR id
|
||||||
summoner = sightstone.summoner.summoner 'dyrus'
|
|
||||||
|
|
||||||
summoner.name
|
summoner.name
|
||||||
=> "Dyrus"
|
=> "Dyrus"
|
||||||
@@ -49,8 +48,7 @@ summoner.id
|
|||||||
require 'sightstone'
|
require 'sightstone'
|
||||||
sightstone = Sightstone.new('your_api_key', 'na')
|
sightstone = Sightstone.new('your_api_key', 'na')
|
||||||
|
|
||||||
# gets the runebook of the summoner or a summoners id
|
rune_book = sightstone.summoner.runes 5908 # 5908 is the summoner ID, you can pass a summoner object, too!
|
||||||
rune_book = sightstone.summoner.runes 5908
|
|
||||||
rune_book.pages.size
|
rune_book.pages.size
|
||||||
=> 20
|
=> 20
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user