Class: RackGraphql::HealthResponseBuilder
- Inherits:
-
Object
- Object
- RackGraphql::HealthResponseBuilder
- Defined in:
- lib/rack_graphql/health_response_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(app_name:, env: {}) ⇒ HealthResponseBuilder
constructor
A new instance of HealthResponseBuilder.
Constructor Details
#initialize(app_name:, env: {}) ⇒ HealthResponseBuilder
Returns a new instance of HealthResponseBuilder.
3 4 5 6 |
# File 'lib/rack_graphql/health_response_builder.rb', line 3 def initialize(app_name:, env: {}) @app_name = app_name @request = Rack::Request.new(env) end |
Instance Method Details
#build ⇒ Object
8 9 10 |
# File 'lib/rack_graphql/health_response_builder.rb', line 8 def build [200, headers, [body]] end |