Class: PlatformosCheck::GraphqlTraverser

Inherits:
Object
  • Object
show all
Defined in:
lib/platformos_check/graphql_traverser.rb

Instance Method Summary collapse

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

#fieldsObject



11
12
13
# File 'lib/platformos_check/graphql_traverser.rb', line 11

def fields
  pickup_fields(@graphql_file.selections, '')
end