Class: CPEE::Properties::GetComplex

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



488
489
490
491
492
493
494
495
496
497
498
# File 'lib/cpee/implementation_properties.rb', line 488

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