Class: HttpStub::Configurer::Request::Http::Factory
- Inherits:
-
Object
- Object
- HttpStub::Configurer::Request::Http::Factory
- Defined in:
- lib/http_stub/configurer/request/http/factory.rb
Class Method Summary collapse
- .delete(path, headers = {}) ⇒ Object
- .get(path, headers = {}) ⇒ Object
- .multipart(path, model, headers = {}) ⇒ Object
- .post(path, parameters = {}) ⇒ Object
Class Method Details
.delete(path, headers = {}) ⇒ Object
22 23 24 |
# File 'lib/http_stub/configurer/request/http/factory.rb', line 22 def delete(path, headers={}) HttpStub::Configurer::Request::Http::Basic.new(method: :delete, path: path, headers: headers) end |
.get(path, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/http_stub/configurer/request/http/factory.rb', line 14 def get(path, headers={}) HttpStub::Configurer::Request::Http::Basic.new(method: :get, path: path, headers: headers) end |