Class: GraphQL::Analyzer::Result
- Inherits:
-
Object
- Object
- GraphQL::Analyzer::Result
- Defined in:
- lib/graphql/analyzer/result.rb
Instance Attribute Summary collapse
-
#explained_queries ⇒ Object
(also: #queries)
readonly
Returns the value of attribute explained_queries.
-
#path ⇒ Object
Returns the value of attribute path.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root, explained_queries) ⇒ Result
constructor
A new instance of Result.
- #to_h ⇒ Object
Constructor Details
#initialize(root, explained_queries) ⇒ Result
Returns a new instance of Result.
8 9 10 11 |
# File 'lib/graphql/analyzer/result.rb', line 8 def initialize(root, explained_queries) @root = root @explained_queries = explained_queries end |
Instance Attribute Details
#explained_queries ⇒ Object (readonly) Also known as: queries
Returns the value of attribute explained_queries.
5 6 7 |
# File 'lib/graphql/analyzer/result.rb', line 5 def explained_queries @explained_queries end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/graphql/analyzer/result.rb', line 4 def path @path end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
5 6 7 |
# File 'lib/graphql/analyzer/result.rb', line 5 def root @root end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/graphql/analyzer/result.rb', line 13 def to_h { query: root, details: explained_queries, path: path } end |