Sha256: 844b27ee1bae0d94f4c0260f7b8e4b99d06958caf5cc500f4e0e5e735e268155
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 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(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.3 | lib/chartmogul/api/actions/destroy.rb |