Sha256: b63be59463fa08657e09421e947ab7357b5a8eeef6f4803e82425683d191bd7d

Contents?: true

Size: 282 Bytes

Versions: 11

Compression:

Stored size: 282 Bytes

Contents

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

class LHS::Item < LHS::Proxy

  module Destroy
    extend ActiveSupport::Concern

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lhs-5.0.4 lib/lhs/concerns/item/destroy.rb
lhs-5.0.3 lib/lhs/concerns/item/destroy.rb
lhs-5.0.1 lib/lhs/concerns/item/destroy.rb
lhs-5.0.0 lib/lhs/concerns/item/destroy.rb
lhs-4.2.1 lib/lhs/concerns/item/destroy.rb
lhs-4.2.0 lib/lhs/concerns/item/destroy.rb
lhs-4.1.0 lib/lhs/concerns/item/destroy.rb
lhs-4.0.0 lib/lhs/concerns/item/destroy.rb
lhs-3.4.2 lib/lhs/concerns/item/destroy.rb
lhs-3.4.1 lib/lhs/concerns/item/destroy.rb
lhs-3.4.0 lib/lhs/concerns/item/destroy.rb