Class: CPEE::Properties::SetDetail

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee/implementation_properties.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



620
621
622
623
624
625
626
627
628
629
# File 'lib/cpee/implementation_properties.rb', line 620

def response
  id = @a[0]
  opts = @a[1]
  if CPEE::Persistence::extract_item(id,opts,@r.join('/'))
    CPEE::Persistence::set_item(id,opts,'position',@p[0].value => [ { 'position' => @r.last } ])
  else
    @status = 404
  end
  nil
end