Class: CPEE::Properties::PutStatus
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Properties::PutStatus
- Defined in:
- lib/cpee/implementation_properties.rb
Overview
}}}
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.set(id, opts, xml) ⇒ Object
{{{
308 309 310 311 312 |
# 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 |
Instance Method Details
#response ⇒ Object
314 315 316 317 318 319 320 321 322 323 324 325 |
# 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 |