Class: Graphlient::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/ecoportal/api/common/graphql/patches/query.rb

Constant Summary collapse

FRAGMENT_DEFITION =
/___(?<const>[A-Z][a-zA-Z0-9_]*(__[A-Z][a-zA-Z0-9_]*)*)/

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Query

Returns a new instance of Query.



5
6
7
8
9
10
# File 'lib/ecoportal/api/common/graphql/patches/query.rb', line 5

def initialize(&block)
  @indents = 0
  @query_str = ''
  @variables = []
  evaluate(&block)
end