Method: Esearch::Request#initialize

Defined in:
lib/esearch/request.rb

#initialize(verb, path, body = EMPTY_HASH, params = EMPTY_HASH) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object

Parameters:

  • verb (Symbol)
  • path (String)
  • body (Hash) (defaults to: EMPTY_HASH)
  • params (Hash) (defaults to: EMPTY_HASH)


54
55
56
# File 'lib/esearch/request.rb', line 54

def initialize(verb, path, body = EMPTY_HASH, params = EMPTY_HASH)
  @verb, @path, @body, @params = verb, path.to_s, body, params
end