Sha256: e1a9429ecc8b15bfc36921273e700dca67499985bf383ef3cbd5e294c034f868

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

module CurrencyCloud
  module Actions
    
    module Delete

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

    module InstanceDelete
      def delete
        self.class.delete(id)
        self
      end       
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
currency_cloud-0.7.1 lib/currency_cloud/actions/delete.rb
currency_cloud-0.7 lib/currency_cloud/actions/delete.rb