class GraphQL::SchemaComparator::Changes::AbstractChange

Base class for change objects

Public Instance Methods

breaking?() click to toggle source

@return [Boolean] If the change is breaking or not

# File lib/graphql/schema_comparator/changes.rb, line 16
def breaking?
  criticality.breaking?
end
criticality() click to toggle source

@return [GraphQL::SchemaComparator::Changes::Criticality] The criticality of this change

# File lib/graphql/schema_comparator/changes.rb, line 31
def criticality
  raise NotImplementedError
end
dangerous?() click to toggle source

@return [Boolean] If the change is dangerous or not

# File lib/graphql/schema_comparator/changes.rb, line 21
def dangerous?
  criticality.dangerous?
end
message() click to toggle source

A message describing the change that happened between the two version @return [String] The change message

# File lib/graphql/schema_comparator/changes.rb, line 11
def message
  raise NotImplementedError
end
non_breaking?() click to toggle source

@return [Boolean] If the change is non breaking

# File lib/graphql/schema_comparator/changes.rb, line 26
def non_breaking?
  criticality.non_breaking?
end
path() click to toggle source

@return [String] Dot-delimited path to the affected schema member.

# File lib/graphql/schema_comparator/changes.rb, line 36
def path
  raise NotImplementedError
end