Sha256: fcbbf7bb454d226b683495462ba093cdae6568aea1f932091719d8c775742303

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

module CurrencyCloud
  module Actions
    module Cancel
      def self.extended(base)
        base.send(:include, InstanceDelete)
      end

      def cancel(id)
        attrs = client.post("#{id}/cancel")
        new(attrs)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
currency_cloud-1.5.0 lib/currency_cloud/actions/cancel.rb
currency_cloud-1.4.0 lib/currency_cloud/actions/cancel.rb
currency_cloud-1.3.1 lib/currency_cloud/actions/cancel.rb
currency_cloud-1.3.0 lib/currency_cloud/actions/cancel.rb