Sha256: 51743ec35cb2657913f77c902ae3f608ae36244cf709deadfb9ad51b6962d78d
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require 'pp' 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(self.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.2 | lib/chartmogul/api/actions/destroy.rb |