class GraphQL::StaticValidation::ArgumentsAreDefinedError
Attributes
argument_name[R]
name[R]
parent[R]
type_name[R]
Public Class Methods
new(message, path: nil, nodes: [], name:, type:, argument_name:, parent:)
click to toggle source
Calls superclass method
GraphQL::StaticValidation::Error::new
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 10 def initialize(message, path: nil, nodes: [], name:, type:, argument_name:, parent:) super(message, path: path, nodes: nodes) @name = name @type_name = type @argument_name = argument_name @parent = parent end
Public Instance Methods
code()
click to toggle source
# File lib/graphql/static_validation/rules/arguments_are_defined_error.rb, line 32 def code "argumentNotAccepted" end
to_h()
click to toggle source
A hash representation of this Message
Calls superclass method
GraphQL::StaticValidation::Error#to_h
# 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