Sha256: 4354797c81b8bc384af86c24165c6c8db0d4b21834179b24f76606bf938a6ba6

Contents?: true

Size: 623 Bytes

Versions: 10

Compression:

Stored size: 623 Bytes

Contents

# frozen_string_literal: true

module ChartMogul
  module API
    module Actions
      module DestroyWithParams
        def self.included(base)
          base.extend ClassMethods
        end

        def destroy_with_params!
          handling_errors do
            connection.delete(resource_path.path, instance_attributes)
          end
          true
        end

        module ClassMethods
          def destroy_with_params!(options = {})
            handling_errors do
              connection.delete(resource_path.path, options)
            end
            true
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chartmogul-ruby-4.4.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-4.3.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-4.2.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-4.1.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-4.0.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-3.3.1 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-3.3.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-3.2.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-3.1.0 lib/chartmogul/api/actions/destroy_with_params.rb
chartmogul-ruby-3.0.2 lib/chartmogul/api/actions/destroy_with_params.rb