Class: GraphQL::Groups::QueryResult
- Inherits:
-
Object
- Object
- GraphQL::Groups::QueryResult
- Defined in:
- lib/graphql/groups/query_result.rb
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
readonly
Returns the value of attribute aggregate.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#result_hash ⇒ Object
readonly
Returns the value of attribute result_hash.
Instance Method Summary collapse
-
#initialize(key, aggregate, result) ⇒ QueryResult
constructor
A new instance of QueryResult.
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
#aggregate ⇒ Object (readonly)
Returns the value of attribute aggregate.
7 8 9 |
# File 'lib/graphql/groups/query_result.rb', line 7 def aggregate @aggregate end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/graphql/groups/query_result.rb', line 6 def key @key end |
#result_hash ⇒ Object (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 |