Class: GraphQL::Language::Variable
- Inherits:
-
Struct
- Object
- Struct
- GraphQL::Language::Variable
- Defined in:
- lib/graphql/language/variable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/graphql/language/variable.rb', line 3 def name @name end |
Instance Method Details
#materialize(type, variables) ⇒ Object
5 6 7 |
# File 'lib/graphql/language/variable.rb', line 5 def materialize(type, variables) variables[name.to_sym] end |