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

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

Direct Known Subclasses

FaradayAdapter, HttpxAdapter, NetHttpAdapter

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Base.



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

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

Instance Method Details

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

Raises:

  • (NotImplementedError)


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

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

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

Raises:

  • (NotImplementedError)


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

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

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

Raises:

  • (NotImplementedError)


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

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