Class: GraphQL::StaticValidation::ArgumentsAreDefinedError
- Defined in:
- lib/graphql/static_validation/rules/arguments_are_defined_error.rb
Instance Attribute Summary collapse
-
#argument_name ⇒ Object
readonly
Returns the value of attribute argument_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Attributes inherited from Error
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(message, path: nil, nodes: [], name:, type:, argument_name:, parent:) ⇒ ArgumentsAreDefinedError
constructor
A new instance of ArgumentsAreDefinedError.
-
#to_h ⇒ Object
A hash representation of this Message.
Constructor Details
#initialize(message, path: nil, nodes: [], name:, type:, argument_name:, parent:) ⇒ ArgumentsAreDefinedError
Returns a new instance of ArgumentsAreDefinedError.
10 11 12 13 14 15 16 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 10 def initialize(, path: nil, nodes: [], name:, type:, argument_name:, parent:) super(, path: path, nodes: nodes) @name = name @type_name = type @argument_name = argument_name @parent = parent end |
Instance Attribute Details
#argument_name ⇒ Object (readonly)
Returns the value of attribute argument_name.
7 8 9 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 7 def argument_name @argument_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 5 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
8 9 10 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 8 def parent @parent end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
6 7 8 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 6 def type_name @type_name end |
Instance Method Details
#code ⇒ Object
32 33 34 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 32 def code "argumentNotAccepted" end |
#to_h ⇒ Object
A hash representation of this Message
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/graphql/static_validation/rules/arguments_are_defined_error.rb', line 19 def to_h extensions = { "code" => code, "name" => name, "typeName" => type_name, "argumentName" => argument_name } super.merge({ "extensions" => extensions }) end |