Class: ElasticGraph::QueryInterceptor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/query_interceptor/config.rb

Overview

Defines configuration for elasticgraph-query_interceptor

Defined Under Namespace

Classes: InterceptorData, InterceptorInterface

Instance Method Summary collapse

Instance Method Details

#with_runtime_metadata_configs(parsed_runtime_metadata_hashes) ⇒ Object



64
65
66
67
68
69
# File 'lib/elastic_graph/query_interceptor/config.rb', line 64

def ()
  interceptor_hashes = .flat_map { |h| h["interceptors"] || [] }
  return self if interceptor_hashes.empty?

  with(interceptors: interceptors + load_interceptors(interceptor_hashes))
end