Class: RubyRest::Server

Inherits:
WEBrick::HTTPServer
  • Object
show all
Defined in:
lib/rubyrest/engine.rb

Overview

Adds some extra functionnality to the actual server implementation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Server

Creates a new WEBrick instance with the specified configuration



98
99
100
101
# File 'lib/rubyrest/engine.rb', line 98

def initialize( config )
  super( :Port => config[ :serviceport ] )
  @rubyrest = config
end

Instance Attribute Details

#rubyrestObject

the configuration options



94
95
96
# File 'lib/rubyrest/engine.rb', line 94

def rubyrest
  @rubyrest
end