Class: Liberty::Application
- Inherits:
-
Object
- Object
- Liberty::Application
- Defined in:
- lib/liberty/application.rb
Instance Attribute Summary collapse
-
#endpoint_class ⇒ Object
readonly
Returns the value of attribute endpoint_class.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(endpoint_class:) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(endpoint_class:) ⇒ Application
Returns a new instance of Application.
10 11 12 |
# File 'lib/liberty/application.rb', line 10 def initialize(endpoint_class:) @endpoint_class = endpoint_class end |
Instance Attribute Details
#endpoint_class ⇒ Object (readonly)
Returns the value of attribute endpoint_class.
8 9 10 |
# File 'lib/liberty/application.rb', line 8 def endpoint_class @endpoint_class end |
Instance Method Details
#call(env) ⇒ Object
14 15 16 |
# File 'lib/liberty/application.rb', line 14 def call(env) response(env).to_rack_response end |