Class: DevSuite::RequestLogger::Extractor::Base

Inherits:
Utils::Construct::Component::Base show all
Defined in:
lib/dev_suite/request_logger/extractor/base.rb

Direct Known Subclasses

Faraday, NetHttp

Instance Method Summary collapse

Methods inherited from Utils::Construct::Component::Base

component_key

Instance Method Details

#extract_request(_instance, _request) ⇒ Object

Extracts the request details from an HTTP request object

Parameters:

  • instance (Object)

    The instance of the HTTP client that is making the request

  • request (Object)

    The request object that is being made

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/dev_suite/request_logger/extractor/base.rb', line 10

def extract_request(_instance, _request)
  raise NotImplementedError
end

#extract_response(_instance, _response) ⇒ Object

Extracts the response details from an HTTP response object

Parameters:

  • instance (Object)

    The instance of the HTTP client that is making the request

  • response (Object)

    The response object that is being returned

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/dev_suite/request_logger/extractor/base.rb', line 17

def extract_response(_instance, _response)
  raise NotImplementedError
end