Sha256: 8d8671ebda17105e46086a9061c1ed0a6767439fc9af9e80f3491a56c70afe03
Contents?: true
Size: 509 Bytes
Versions: 3
Compression:
Stored size: 509 Bytes
Contents
module Sendle module Api module Actions module Destroy def destroy(id) raise Sendle::Api::Errors::MissingParams.new(['id']) if nullish?(id) request_params = rest_client_params request_params[:method] = :delete request_params[:url] = url + '/' + id process_destroy_response(request(request_params)) end def self.included(base) base.extend(Sendle::Api::Sugars::Destroy) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sendle-api-0.0.13 | lib/sendle/api/actions/destroy.rb |
sendle-api-0.0.12 | lib/sendle/api/actions/destroy.rb |
sendle-api-0.0.11 | lib/sendle/api/actions/destroy.rb |