Class: GraphQL::Syntax::Variable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, json_string:) ⇒ Variable

Returns a new instance of Variable.



3
4
5
6
# File 'lib/graphql/syntax/variable.rb', line 3

def initialize(identifier:, json_string:)
  @identifier = identifier
  @json_string = json_string
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



2
3
4
# File 'lib/graphql/syntax/variable.rb', line 2

def identifier
  @identifier
end

#json_stringObject (readonly)

Returns the value of attribute json_string.



2
3
4
# File 'lib/graphql/syntax/variable.rb', line 2

def json_string
  @json_string
end