Class: Altertable::Adapters::Base
- Inherits:
-
Object
- Object
- Altertable::Adapters::Base
- Defined in:
- lib/altertable/adapters.rb,
sig/altertable/adapters.rbs
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(base_url:, timeout:, headers: {}) ⇒ Base
constructor
A new instance of Base.
- #post(path, body: nil, params: {}, &block) ⇒ Response
Constructor Details
#initialize(base_url:, timeout:, headers: {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/altertable/adapters.rb', line 6 def initialize(base_url:, timeout:, headers: {}) @base_url = base_url @timeout = timeout @headers = headers end |
Instance Method Details
#post(path, body: nil, params: {}, &block) ⇒ Response
12 13 14 |
# File 'lib/altertable/adapters.rb', line 12 def post(path, body: nil, params: {}, &block) raise NotImplementedError end |