Class: Garen::Match
Instance Method Summary
collapse
Methods inherited from Base
#attach_rate_limits, #make_request
Constructor Details
#initialize(conn) ⇒ Match
Returns a new instance of Match.
2
3
4
|
# File 'lib/garen/match.rb', line 2
def initialize(conn)
@conn = conn
end
|
Instance Method Details
#by_account_id(account_id, options = {}) ⇒ Object
6
7
8
|
# File 'lib/garen/match.rb', line 6
def by_account_id(account_id, options = {})
make_request(@conn, "lol/match/v3/matchlists/by-account/#{account_id}", options)
end
|
#by_match_id(match_id, options = {}) ⇒ Object
10
11
12
|
# File 'lib/garen/match.rb', line 10
def by_match_id(match_id, options = {})
make_request(@conn, "lol/match/v3/matches/#{match_id}", options)
end
|
#recent_by_account_id(account_id, options = {}) ⇒ Object
14
15
16
|
# File 'lib/garen/match.rb', line 14
def recent_by_account_id(account_id, options = {})
make_request(@conn, "lol/match/v3/matchlists/by-account/#{account_id}/recent", options)
end
|
#timeline_by_match_id(match_id, options = {}) ⇒ Object
18
19
20
|
# File 'lib/garen/match.rb', line 18
def timeline_by_match_id(match_id, options = {})
make_request(@conn, "lol/match/v3/timelines/by-match/#{match_id}", options)
end
|