Class: GraphQL::SchemaComparator::Changes::DirectiveLocationRemoved

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, location) ⇒ DirectiveLocationRemoved

Returns a new instance of DirectiveLocationRemoved


180
181
182
183
184
# File 'lib/graphql/schema_comparator/changes.rb', line 180

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

Instance Attribute Details

#criticalityObject (readonly)

Returns the value of attribute criticality


178
179
180
# File 'lib/graphql/schema_comparator/changes.rb', line 178

def criticality
  @criticality
end

#directiveObject (readonly)

Returns the value of attribute directive


178
179
180
# File 'lib/graphql/schema_comparator/changes.rb', line 178

def directive
  @directive
end

#locationObject (readonly)

Returns the value of attribute location


178
179
180
# File 'lib/graphql/schema_comparator/changes.rb', line 178

def location
  @location
end

Instance Method Details

#messageObject


186
187
188
# File 'lib/graphql/schema_comparator/changes.rb', line 186

def message
  "Location `#{location}` was removed from directive `#{directive.name}`"
end