Sha256: 7e2e45f1dadf32575d10faad64f7b68fc6901fcaf530fa8c61f7c8efce27a09c

Contents?: true

Size: 342 Bytes

Versions: 20

Compression:

Stored size: 342 Bytes

Contents

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

class LHS::Item < LHS::Proxy

  module Destroy
    extend ActiveSupport::Concern

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
lhs-1.6.1 lib/lhs/concerns/item/destroy.rb
lhs-1.6.0 lib/lhs/concerns/item/destroy.rb
lhs-2.0.5 lib/lhs/concerns/item/destroy.rb
lhs-2.0.4 lib/lhs/concerns/item/destroy.rb
lhs-2.0.3 lib/lhs/concerns/item/destroy.rb
lhs-2.0.2 lib/lhs/concerns/item/destroy.rb
lhs-2.0.1 lib/lhs/concerns/item/destroy.rb
lhs-2.0.0 lib/lhs/concerns/item/destroy.rb
lhs-1.5.0 lib/lhs/concerns/item/destroy.rb
lhs-1.4.0 lib/lhs/concerns/item/destroy.rb
lhs-1.3.1 lib/lhs/concerns/item/destroy.rb
lhs-1.3.0 lib/lhs/concerns/item/destroy.rb
lhs-1.2.3 lib/lhs/concerns/item/destroy.rb
lhs-1.2.2 lib/lhs/concerns/item/destroy.rb
lhs-1.2.1 lib/lhs/concerns/item/destroy.rb
lhs-1.2.0 lib/lhs/concerns/item/destroy.rb
lhs-1.1.0 lib/lhs/concerns/item/destroy.rb
lhs-1.0.0 lib/lhs/concerns/item/destroy.rb
lhs-0.4.0 lib/lhs/concerns/item/destroy.rb
lhs-0.3.0 lib/lhs/concerns/item/destroy.rb