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_cache ⇒ Object (readonly)

Returns the value of attribute platform_authorized_key_cache.



22
23
24
# File 'lib/graphql/tracing/platform_trace.rb', line 22

def platform_authorized_key_cache
  @platform_authorized_key_cache
end

#platform_field_key_cache ⇒ Object (readonly)

Returns the value of attribute platform_field_key_cache.



22
23
24
# File 'lib/graphql/tracing/platform_trace.rb', line 22

def platform_field_key_cache
  @platform_field_key_cache
end

#platform_resolve_type_key_cache ⇒ Object (readonly)

Returns the value of attribute platform_resolve_type_key_cache.



22
23
24
# File 'lib/graphql/tracing/platform_trace.rb', line 22

def platform_resolve_type_key_cache
  @platform_resolve_type_key_cache
end

Instance Method Details

#initialize ⇒ Object



16
17
18
19
20
# File 'lib/graphql/tracing/platform_trace.rb', line 16

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