Class: GraphQL::SchemaComparator::Changes::ObjectTypeInterfaceRemoved

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(interface, object_type) ⇒ ObjectTypeInterfaceRemoved


194
195
196
197
198
# File 'lib/graphql/schema_comparator/changes.rb', line 194

def initialize(interface, object_type)
  @interface = interface
  @object_type = object_type
  @criticality = Changes::Criticality.breaking
end

Instance Attribute Details

#criticalityObject (readonly)

Returns the value of attribute criticality


192
193
194
# File 'lib/graphql/schema_comparator/changes.rb', line 192

def criticality
  @criticality
end

#interfaceObject (readonly)

Returns the value of attribute interface


192
193
194
# File 'lib/graphql/schema_comparator/changes.rb', line 192

def interface
  @interface
end

#object_typeObject (readonly)

Returns the value of attribute object_type


192
193
194
# File 'lib/graphql/schema_comparator/changes.rb', line 192

def object_type
  @object_type
end

Instance Method Details

#messageObject


200
201
202
# File 'lib/graphql/schema_comparator/changes.rb', line 200

def message
  "`#{object_type.name}` object type no longer implements `#{interface.name}` interface"
end