Sha256: 46b45b16d06b27f2e398f23eb8775ed4376d87a0372833e2316b7b275fc8c813

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require 'active_support'
require File.dirname(__FILE__) + '/../../proxy'

class LHS::Item < LHS::Proxy

  module Destroy
    extend ActiveSupport::Concern

    def destroy
      service = _data._root._service
      _data._request = service.request(method: :delete, url: href)._request
      _data
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lhs-2.2.2 lib/lhs/concerns/item/destroy.rb
lhs-2.2.1 lib/lhs/concerns/item/destroy.rb
lhs-2.2.0 lib/lhs/concerns/item/destroy.rb
lhs-2.1.1 lib/lhs/concerns/item/destroy.rb
lhs-2.1.0 lib/lhs/concerns/item/destroy.rb