Class: Liberty::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/liberty/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject (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