Sha256: 49693989b22c9fcd3e703926e8e251fd9ae05303f5ac20c4fc31972a4f02c8f4
Contents?: true
Size: 740 Bytes
Versions: 8
Compression:
Stored size: 740 Bytes
Contents
module Loquor class HttpAction::Delete < HttpAction def self.delete(url, deps) new(url, deps).delete end def initialize(url, deps) super(url, deps) end def delete @config.logger.info "Making DELETE request to: #{full_url}" response = JSON.parse(signed_request.execute) @config.logger.info "Signed request executed. Response: #{response}" response end private def request RestClient::Request.new(url: full_url, accept: :json, headers: {'Content-type' => 'application/json'}, method: :delete) end def full_url "#{@config.endpoint}#{@url}" end end end
Version data entries
8 entries across 8 versions & 1 rubygems