class CPEE::Properties::PutStatus
Public Class Methods
Source
# File lib/cpee/implementation_properties.rb, line 308 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
Source
# File lib/cpee/implementation_properties.rb, line 314 def response id = @a[0] opts = @a[1] if opts[:statemachine].readonly? id @status = 423 elsif opts[:statemachine].final? id @status = 410 else PutStatus::set id, opts, @p[0].value.read end nil end