Class: Hextech::SendRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/hextech/send_request.rb

Constant Summary collapse

STATIC_HOST =
'https://ddragon.leagueoflegends.com'

Instance Method Summary collapse

Constructor Details

#initialize(host:, api_key:) ⇒ SendRequest

Returns a new instance of SendRequest.



8
9
10
11
# File 'lib/hextech/send_request.rb', line 8

def initialize(host:, api_key:)
  @host = host
  @api_key = api_key
end

Instance Method Details

#call(path) ⇒ Object



13
14
15
# File 'lib/hextech/send_request.rb', line 13

def call(path)
  client.get(path)
end