Class: CPEE::Properties::GetPt

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



643
644
645
646
647
648
649
650
651
# File 'lib/cpee/implementation_properties.rb', line 643

def response
  id = @a[0]
  opts = @a[1]
  if val = CPEE::Persistence::extract_item(id,opts,@r.join('/'))
    Riddl::Parameter::Simple.new('value',val)
  else
    @status = 404
  end
end