Class: GraphQL::SchemaComparator::Changes::TypeRemoved

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

Overview

Mostly breaking changes

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractChange

#breaking?, #dangerous?, #non_breaking?

Constructor Details

#initialize(removed_type) ⇒ TypeRemoved


41
42
43
44
# File 'lib/graphql/schema_comparator/changes.rb', line 41

def initialize(removed_type)
  @removed_type = removed_type
  @criticality = Changes::Criticality.breaking
end

Instance Attribute Details

#criticalityObject (readonly)

Returns the value of attribute criticality


39
40
41
# File 'lib/graphql/schema_comparator/changes.rb', line 39

def criticality
  @criticality
end

#removed_typeObject (readonly)

Returns the value of attribute removed_type


39
40
41
# File 'lib/graphql/schema_comparator/changes.rb', line 39

def removed_type
  @removed_type
end

Instance Method Details

#messageObject


46
47
48
# File 'lib/graphql/schema_comparator/changes.rb', line 46

def message
  "`#{removed_type.name}` was removed"
end