Class: PlatformosCheck::GraphqlTraverser
- Inherits:
-
Object
- Object
- PlatformosCheck::GraphqlTraverser
- Defined in:
- lib/platformos_check/graphql_traverser.rb
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(graphql_file) ⇒ GraphqlTraverser
constructor
A new instance of GraphqlTraverser.
Constructor Details
#initialize(graphql_file) ⇒ GraphqlTraverser
Returns a new instance of GraphqlTraverser.
7 8 9 |
# File 'lib/platformos_check/graphql_traverser.rb', line 7 def initialize(graphql_file) @graphql_file = graphql_file end |
Instance Method Details
#fields ⇒ Object
11 12 13 |
# File 'lib/platformos_check/graphql_traverser.rb', line 11 def fields pickup_fields(@graphql_file.selections, '') end |