Module: GQLi::DSL
- Included in:
- Introspection
- Defined in:
- lib/gqli/dsl.rb
Overview
GraphQL-like DSL methods
Class Method Summary collapse
-
.enum(value) ⇒ Object
Creates a EnumValue object.
-
.fragment(name, on, &block) ⇒ Object
Creates a Fragment object.
-
.query(name = nil, &block) ⇒ Object
Creates a Query object.
Instance Method Summary collapse
-
#enum(value) ⇒ Object
Creates a EnumValue object.
-
#fragment(name, on, &block) ⇒ Object
Creates a Fragment object.
-
#query(name = nil, &block) ⇒ Object
Creates a Query object.
Class Method Details
.enum(value) ⇒ Object
Creates a EnumValue object
Can be used at a class level
27 28 29 |
# File 'lib/gqli/dsl.rb', line 27 def self.enum(value) EnumValue.new(value) end |
Instance Method Details
#enum(value) ⇒ Object
Creates a EnumValue object
Can be used at an instance level
48 49 50 |
# File 'lib/gqli/dsl.rb', line 48 def enum(value) EnumValue.new(value) end |