Class: RackGraphql::HealthResponseBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/rack_graphql/health_response_builder.rb

Instance Method Summary collapse

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

#buildObject



8
9
10
# File 'lib/rack_graphql/health_response_builder.rb', line 8

def build
  [200, headers, [body]]
end