Class: Skypager::Builder::Server
- Inherits:
-
Object
- Object
- Skypager::Builder::Server
- Defined in:
- lib/skypager/builder/server.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(*args) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(*args) ⇒ Server
Returns a new instance of Server.
16 17 18 |
# File 'lib/skypager/builder/server.rb', line 16 def initialize(*args) @options = args. end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/skypager/builder/server.rb', line 14 def @options end |
Instance Method Details
#call(env) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/skypager/builder/server.rb', line 20 def call(env) request = Rack::Request.new(env) respond_to(request) rescue => e [500, {}, [e.]] end |