Class: Freefeed::Request

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/freefeed/request.rb

Direct Known Subclasses

AuthenticatedRequest

Instance Method Summary collapse

Instance Method Details

#callObject



16
17
18
19
20
21
22
23
24
# File 'lib/freefeed/request.rb', line 16

def call
  response = http_client
    .headers(headers)
    .public_send(request_method, uri, **request_params)

  error = Freefeed::Error.for(response)
  raise(error) if error
  response
end