Sha256: 0d615c0a4da6466b9fd6f31a5d546798593c05979bbffca089be2d469cfd2e81
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
module Copy module Operations module Delete module ClassMethods # Deletes the given object # # @param [Integer] id The id of the object that gets deleted def delete(attributes={}) id = attributes.delete(:id) response = Copy.request( :delete, nil, api_member_url(id, :delete), {}, options_for_request(attributes) ) true end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copy-ruby-0.0.2 | lib/copy/operations/delete.rb |
copy-ruby-0.0.1 | lib/copy/operations/delete.rb |