Sha256: 9853752d8d2ffad91f23424d19b1f388eeeb6dbc737a13a6b7eea7322cb2e366

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 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'
		print encode_response(method, res)

		return :stop
	end
	
end

end

# * George Moschovitis <gm@navel.gr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.18.0 lib/nitro/service.rb
nitro-0.18.1 lib/nitro/service.rb