Class: Graphlient::Query
- Inherits:
-
Object
- Object
- Graphlient::Query
- 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
-
#initialize(&block) ⇒ Query
constructor
A new instance of Query.
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 |