Class: CPEE::Properties::GetDetail

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



608
609
610
611
612
613
614
615
616
617
# File 'lib/cpee/implementation_properties.rb', line 608

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