Class: RubyRest::Server
- Inherits:
-
WEBrick::HTTPServer
- Object
- WEBrick::HTTPServer
- RubyRest::Server
- Defined in:
- lib/rubyrest/engine.rb
Overview
Adds some extra functionnality to the actual server implementation.
Instance Attribute Summary collapse
-
#rubyrest ⇒ Object
the configuration options.
Instance Method Summary collapse
-
#initialize(config) ⇒ Server
constructor
Creates a new WEBrick instance with the specified configuration.
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
#rubyrest ⇒ Object
the configuration options
94 95 96 |
# File 'lib/rubyrest/engine.rb', line 94 def rubyrest @rubyrest end |