Module: GraphQL::Tracing::PlatformTrace::BaseKeyCache

Defined in:
lib/graphql/tracing/platform_trace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#platform_authorized_key_cacheObject (readonly)

Returns the value of attribute platform_authorized_key_cache.



20
21
22
# File 'lib/graphql/tracing/platform_trace.rb', line 20

def platform_authorized_key_cache
  @platform_authorized_key_cache
end

#platform_field_key_cacheObject (readonly)

Returns the value of attribute platform_field_key_cache.



20
21
22
# File 'lib/graphql/tracing/platform_trace.rb', line 20

def platform_field_key_cache
  @platform_field_key_cache
end

#platform_resolve_type_key_cacheObject (readonly)

Returns the value of attribute platform_resolve_type_key_cache.



20
21
22
# File 'lib/graphql/tracing/platform_trace.rb', line 20

def platform_resolve_type_key_cache
  @platform_resolve_type_key_cache
end

Instance Method Details

#initializeObject



14
15
16
17
18
# File 'lib/graphql/tracing/platform_trace.rb', line 14

def initialize
  @platform_field_key_cache = Hash.new { |h, k| h[k] = platform_field_key(k) }
  @platform_authorized_key_cache = Hash.new { |h, k| h[k] = platform_authorized_key(k) }
  @platform_resolve_type_key_cache = Hash.new { |h, k| h[k] = platform_resolve_type_key(k) }
end