Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentRemoved

Inherits:
AbstractChange
  • Object
show all
Defined in:
lib/graphql/schema_comparator/changes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractChange

#breaking?, #dangerous?, #non_breaking?

Constructor Details

#initialize(directive, argument) ⇒ DirectiveArgumentRemoved


138
139
140
141
142
# File 'lib/graphql/schema_comparator/changes.rb', line 138

def initialize(directive, argument)
  @directive = directive
  @argument = argument
  @criticality = Changes::Criticality.breaking
end

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument


136
137
138
# File 'lib/graphql/schema_comparator/changes.rb', line 136

def argument
  @argument
end

#criticalityObject (readonly)

Returns the value of attribute criticality


136
137
138
# File 'lib/graphql/schema_comparator/changes.rb', line 136

def criticality
  @criticality
end

#directiveObject (readonly)

Returns the value of attribute directive


136
137
138
# File 'lib/graphql/schema_comparator/changes.rb', line 136

def directive
  @directive
end

Instance Method Details

#messageObject


144
145
146
# File 'lib/graphql/schema_comparator/changes.rb', line 144

def message
  "Argument `#{argument.name}` was removed from directive `#{directive.name}`"
end