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

{{{



483
484
485
486
487
488
489
490
491
492
493
# File 'lib/cpee/implementation_properties.rb', line 483

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