class Wrappi::Request::WithBody
Public Instance Methods
call()
click to toggle source
# File lib/wrappi/request/with_body.rb, line 4 def call http.send(verb, url, body) end
Private Instance Methods
body()
click to toggle source
# File lib/wrappi/request/with_body.rb, line 10 def body { body_type.to_sym => params } end
body_type()
click to toggle source
# File lib/wrappi/request/with_body.rb, line 14 def body_type case endpoint.body_type when :json, :form, :body endpoint.body_type else raise "body_type not recognized" end end