Sha256: 3263c9a7b7db4cc6191ce4dfea7f5282b88ddc18da3a1e5542ccc62313e352fe
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
module ChartMogul module API module Actions module Destroy def self.included(base) base.extend ClassMethods end def destroy! handling_errors do connection.delete("#{resource_path.apply(instance_attributes)}/#{uuid}") end true end module ClassMethods def destroy!(options = {}) handling_errors do connection.delete("#{resource_path.apply(options)}/#{options[:uuid]}") end true end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chartmogul-ruby-1.1.5 | lib/chartmogul/api/actions/destroy.rb |