Class: Altertable::Lakehouse::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/altertable/lakehouse/adapters.rb,
sig/altertable/lakehouse/adapters.rbs

Direct Known Subclasses

FaradayAdapter, HttpxAdapter, NetHttpAdapter

Instance Method Summary collapse

Constructor Details

#initialize(base_url:, timeout:, open_timeout:, headers: {}) ⇒ Base

Returns a new instance of Base.

Parameters:

  • base_url: (String)
  • timeout: (Integer, Float)
  • open_timeout: (Integer, Float)
  • headers: (::Hash[String, String]) (defaults to: {})


7
8
9
10
11
12
# File 'lib/altertable/lakehouse/adapters.rb', line 7

def initialize(base_url:, timeout:, open_timeout:, headers: {})
  @base_url = base_url
  @timeout = timeout
  @open_timeout = open_timeout
  @headers = headers
end

Instance Method Details

#delete(path, body: nil, params: {}, headers: {}, &_block) ⇒ Response

Parameters:

  • path (String)
  • body: (String, nil) (defaults to: nil)
  • params: (::Hash[Symbol | String, untyped]) (defaults to: {})
  • headers: (::Hash[String, String]) (defaults to: {})

Returns:

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/altertable/lakehouse/adapters.rb', line 22

def delete(path, body: nil, params: {}, headers: {}, &_block)
  raise NotImplementedError
end

#get(path, body: nil, params: {}, headers: {}, &_block) ⇒ Response

Parameters:

  • path (String)
  • body: (String, nil) (defaults to: nil)
  • params: (::Hash[Symbol | String, untyped]) (defaults to: {})
  • headers: (::Hash[String, String]) (defaults to: {})

Returns:

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/altertable/lakehouse/adapters.rb', line 14

def get(path, body: nil, params: {}, headers: {}, &_block)
  raise NotImplementedError
end

#post(path, body: nil, params: {}, headers: {}, &_block) ⇒ Response

Parameters:

  • path (String)
  • body: (String, nil) (defaults to: nil)
  • params: (::Hash[Symbol | String, untyped]) (defaults to: {})
  • headers: (::Hash[String, String]) (defaults to: {})

Returns:

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/altertable/lakehouse/adapters.rb', line 18

def post(path, body: nil, params: {}, headers: {}, &_block)
  raise NotImplementedError
end