Class: CPEE::Properties::PutHandlerWrapper

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

Overview

}}}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.set(id, opts, hw) ⇒ Object

{{{



313
314
315
# File 'lib/cpee/implementation_properties.rb', line 313

def self::set(id,opts,hw)
  CPEE::Persistence::set_item(id,opts,'handlerwrapper',:handlerwrapper => hw)
end

Instance Method Details

#responseObject



316
317
318
319
320
321
322
323
324
325
# File 'lib/cpee/implementation_properties.rb', line 316

def response
  id = @a[0]
  opts = @a[1]
  if opts[:statemachine].readonly? id
    @status = 423
  else
    PutHandlerWrapper::set(id,opts,@p[0].value)
  end
  nil
end