Class: GraphQL::Groups::QueryResult

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/groups/query_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, aggregate, result) ⇒ QueryResult

Returns a new instance of QueryResult.



10
11
12
13
14
# File 'lib/graphql/groups/query_result.rb', line 10

def initialize(key, aggregate, result)
  @key = Utils.wrap(key)
  @aggregate = Utils.wrap(aggregate)
  @result_hash = result
end

Instance Attribute Details

#aggregateObject (readonly)

Returns the value of attribute aggregate.



7
8
9
# File 'lib/graphql/groups/query_result.rb', line 7

def aggregate
  @aggregate
end

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/graphql/groups/query_result.rb', line 6

def key
  @key
end

#result_hashObject (readonly)

Returns the value of attribute result_hash.



8
9
10
# File 'lib/graphql/groups/query_result.rb', line 8

def result_hash
  @result_hash
end