Class: NulogyGraphqlApi::GraphqlExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/nulogy_graphql_api/graphql_executor.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#schemaObject (readonly)

Returns the value of attribute schema.



5
6
7
# File 'lib/nulogy_graphql_api/graphql_executor.rb', line 5

def schema
  @schema
end

#transaction_serviceObject (readonly)

Returns the value of attribute transaction_service.



5
6
7
# File 'lib/nulogy_graphql_api/graphql_executor.rb', line 5

def transaction_service
  @transaction_service
end

Class Method Details

.execute(params, context, schema, transaction_service) ⇒ Object



7
8
9
# File 'lib/nulogy_graphql_api/graphql_executor.rb', line 7

def self.execute(params, context, schema, transaction_service)
  new(schema, transaction_service).execute(params, context)
end

Instance Method Details

#execute(params, context) ⇒ Object



11
12
13
# File 'lib/nulogy_graphql_api/graphql_executor.rb', line 11

def execute(params, context)
  graphql_response(params, context).render_http_response
end