Class: Garen::Match

Inherits:
Base
  • Object
show all
Defined in:
lib/garen/match.rb

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 (, options = {})
  make_request(@conn, "lol/match/v3/matchlists/by-account/#{}", 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 (, options = {})
  make_request(@conn, "lol/match/v3/matchlists/by-account/#{}/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