Class: GraphQL::Syntax::Variable
- Inherits:
-
Object
- Object
- GraphQL::Syntax::Variable
- Defined in:
- lib/graphql/syntax/variable.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#json_string ⇒ Object
readonly
Returns the value of attribute json_string.
Instance Method Summary collapse
-
#initialize(identifier:, json_string:) ⇒ Variable
constructor
A new instance of Variable.
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
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
2 3 4 |
# File 'lib/graphql/syntax/variable.rb', line 2 def identifier @identifier end |
#json_string ⇒ Object (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 |