class CPEE::Properties::PutStatus
Public Class Methods
set(id,opts,xml)
click to toggle source
# File lib/cpee/implementation_properties.rb, line 289 def self::set(id,opts,xml) doc = XML::Smart::string(xml) doc.register_namespace 'p', 'http://cpee.org/ns/properties/2.0' CPEE::Persistence::set_item(id,opts,'status',:id => doc.find('string(/p:status/p:id)').to_i, :message => doc.find('string(/p:status/p:message)')) end
Public Instance Methods
response()
click to toggle source
# File lib/cpee/implementation_properties.rb, line 295 def response id = @a[0] opts = @a[1] if opts[:statemachine].readonly? id @status = 422 # semantic error else PutStatus::set id, opts, @p[0].value.read end nil end