Class: GraphQL::SchemaComparator::Changes::FieldRemoved

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_type, field) ⇒ FieldRemoved



124
125
126
127
128
# File 'lib/graphql/schema_comparator/changes.rb', line 124

def initialize(object_type, field)
  @object_type = object_type
  @field = field
  @breaking = true
end

Instance Attribute Details

#breakingObject (readonly)

Returns the value of attribute breaking.



122
123
124
# File 'lib/graphql/schema_comparator/changes.rb', line 122

def breaking
  @breaking
end

#fieldObject (readonly)

Returns the value of attribute field.



122
123
124
# File 'lib/graphql/schema_comparator/changes.rb', line 122

def field
  @field
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



122
123
124
# File 'lib/graphql/schema_comparator/changes.rb', line 122

def object_type
  @object_type
end

Instance Method Details

#messageObject



130
131
132
# File 'lib/graphql/schema_comparator/changes.rb', line 130

def message
  "Field `#{field.name}` was removed from object type `#{object_type.name}`"
end