Sha256: b4b5558b8d64436e5072e343a4122abdf90f993a01c1ce57fbd60da18bf8d3cb

Contents?: true

Size: 211 Bytes

Versions: 8

Compression:

Stored size: 211 Bytes

Contents

module Loquor
  class ApiCall::Destroy < ApiCall

    def initialize(klass, id)
      super(klass)
      @id = id
    end

    def execute
      klass.new Loquor.delete("#{klass.path}/#{@id}")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
loquor-1.13.0 lib/loquor/api_calls/destroy.rb
loquor-1.12.0 lib/loquor/api_calls/destroy.rb
loquor-1.11.0 lib/loquor/api_calls/destroy.rb
loquor-1.10.0 lib/loquor/api_calls/destroy.rb
loquor-1.9.0 lib/loquor/api_calls/destroy.rb
loquor-1.8.0 lib/loquor/api_calls/destroy.rb
loquor-1.7.0 lib/loquor/api_calls/destroy.rb
loquor-1.6.0 lib/loquor/api_calls/destroy.rb