Class: GraphQL::ResultCache::Result

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/graphql/result_cache/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_result) ⇒ Result

Returns a new instance of Result.



10
11
12
13
# File 'lib/graphql/result_cache/result.rb', line 10

def initialize query_result
  @_result = query_result
  @value = process_with_result_cache
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/graphql/result_cache/result.rb', line 6

def value
  @value
end