Sha256: ae0d65c9ed7c624f2b68fd795f3e5c211fa3cd67eb26ef2319bd7096dc5765c7

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

require 'nitro/controller'

module Nitro

class Service < Nitro::Controller
	
	def index
		method, args = decode_request(request.raw_body)
	
		res = send(method, *args)
		
		response.content_type = 'text/xml'
		
		puts '--', encode_response(method, res)
		print encode_response(method, res)

		return :stop
	end
	
end

end

# * George Moschovitis <gm@navel.gr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.19.0 lib/nitro/service.rb