class CPEE::Properties::DelItem

Public Instance Methods

response() click to toggle source
# File lib/cpee/implementation_properties.rb, line 468
def response
  item = @a[0]
  id = @a[1]
  opts = @a[2]
  val = { @r.last => nil }
  if opts[:statemachine].readonly? id
    @status = 423
  else
    if CPEE::Persistence::extract_item(id,opts,@r.join('/'))
      CPEE::Persistence::set_list(id,opts,item,val,val.keys)
    else
      @status = 404
    end
  end
  nil
end