class CPEE::ModelManagement::GetItem
Public Instance Methods
response()
click to toggle source
# File lib/cpee-model-management/implementation.rb, line 424 def response where = @a[0] == :main ? '' : Riddl::Protocols::Utils::unescape(@r[-2]) models = @a[1] name = File.basename(@r[-1],'.xml') fname = File.join(models,where,name + '.xml') if File.exists? fname Riddl::Parameter::Complex.new('content','application/xml',File.read(fname)) else @status = 400 end end