Class: Miron::Server
- Inherits:
-
Object
- Object
- Miron::Server
- Defined in:
- lib/miron/server.rb
Overview
Miron::Server allows HTTP responses to be sent.
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(app, options) ⇒ Response
constructor
Returns the newly created Response.
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
5 6 7 |
# File 'lib/miron/server.rb', line 5 def app @app end |
#handler ⇒ Object
Returns the value of attribute handler.
6 7 8 |
# File 'lib/miron/server.rb', line 6 def handler @handler end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/miron/server.rb', line 5 def @options end |
Instance Method Details
#start ⇒ Object
22 23 24 |
# File 'lib/miron/server.rb', line 22 def start @handler.run(app, ) end |