Sha256: f3be9b9ca04f0a2b34d951010cb4b6f85aabe504ccb852217a0d70c0bc4e9b0e

Contents?: true

Size: 372 Bytes

Versions: 19

Compression:

Stored size: 372 Bytes

Contents

module CurrencyCloud
  module Actions
    module Delete
      def self.extended(base)
        base.send(:include, InstanceDelete) # Private before Ruby 2.1
      end

      # TODO: Set state to be deleted
      # TODO: Disable all actionable methods / freeze?
      def delete(id)
        attrs = client.post("#{id}/delete")
        new(attrs)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
currency_cloud-1.5.0 lib/currency_cloud/actions/delete.rb
currency_cloud-1.4.0 lib/currency_cloud/actions/delete.rb
currency_cloud-1.3.1 lib/currency_cloud/actions/delete.rb
currency_cloud-1.3.0 lib/currency_cloud/actions/delete.rb
currency_cloud-1.2.1 lib/currency_cloud/actions/delete.rb
currency_cloud-1.1.4 lib/currency_cloud/actions/delete.rb
currency_cloud-1.0.3 lib/currency_cloud/actions/delete.rb
currency_cloud-0.17.7 lib/currency_cloud/actions/delete.rb
currency_cloud-0.16.2 lib/currency_cloud/actions/delete.rb
currency_cloud-0.15.8 lib/currency_cloud/actions/delete.rb
currency_cloud-0.14.2 lib/currency_cloud/actions/delete.rb
currency_cloud-0.12.5 lib/currency_cloud/actions/delete.rb
currency_cloud-0.12.4 lib/currency_cloud/actions/delete.rb
currency_cloud-0.11.2 lib/currency_cloud/actions/delete.rb
currency_cloud-0.10.0 lib/currency_cloud/actions/delete.rb
currency_cloud-0.9.0 lib/currency_cloud/actions/delete.rb
currency_cloud-0.8.2 lib/currency_cloud/actions/delete.rb
currency_cloud-0.8.0 lib/currency_cloud/actions/delete.rb
currency_cloud-0.7.2 lib/currency_cloud/actions/delete.rb