-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data returns is a little weird, will refine how we handle it in classes
- Loading branch information
Showing
4 changed files
with
885 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module RiotApi | ||
module Resource | ||
class Team < BaseV21 | ||
|
||
def by_summoner(summoner_id) | ||
@connection.get(by_summoner_path(summoner_id)).body | ||
end | ||
|
||
private | ||
|
||
def by_summoner_path(summoner_id) | ||
"#{base_path}/by-summoner/#{summoner_id}" | ||
end | ||
|
||
def base_path | ||
"#{endpoint_precursor}/team" | ||
end | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.