Sha256: f5db2c32fbc1b1dbcdce5bf58ea931cf8925bff11cc6a0b8c637a1afa737411b

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

module Pingpp
  module APIOperations
    module Delete
      module ClassMethods
        def delete(id, params={}, opts={})
          response, opts = request(:delete, "#{resource_url(opts)}/#{id}", params, opts)
          Util.convert_to_pingpp_object(response, opts)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pingpp-2.2.4 lib/pingpp/api_operations/delete.rb
pingpp-2.2.3 lib/pingpp/api_operations/delete.rb
pingpp-2.2.2 lib/pingpp/api_operations/delete.rb
pingpp-2.2.1 lib/pingpp/api_operations/delete.rb
pingpp-2.2.0 lib/pingpp/api_operations/delete.rb