class GraphQL::SchemaComparator::Changes::DirectiveArgumentRemoved

Attributes

argument[R]
criticality[R]
directive[R]

Public Class Methods

new(directive, argument) click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 183
def initialize(directive, argument)
  @directive = directive
  @argument = argument
  @criticality = Changes::Criticality.breaking
end

Public Instance Methods

message() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 189
def message
  "Argument `#{argument.graphql_name}` was removed from directive `#{directive.graphql_name}`"
end
path() click to toggle source
# File lib/graphql/schema_comparator/changes.rb, line 193
def path
  ["@#{directive.graphql_name}", argument.graphql_name].join('.')
end