Class: GraphQL::Language::Variable

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/language/variable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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