Class: DoterbHttp::Set
- Inherits:
-
Object
- Object
- DoterbHttp::Set
- Extended by:
- Dry::Initializer
- Defined in:
- lib/doterb_http.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/doterb_http.rb', line 17 def call response = case method.upcase when 'POST' DoterbHttp::Post.new(url: url, body: body).call when 'GET' DoterbHttp::Get.new(url: url, body: body).call end response end |