Class: GraphQL::SchemaComparator::Changes::InputFieldRemoved

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input_object_type, field) ⇒ InputFieldRemoved

Returns a new instance of InputFieldRemoved.



77
78
79
80
81
# File 'lib/graphql/schema_comparator/changes.rb', line 77

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

Instance Attribute Details

#breakingObject (readonly)

Returns the value of attribute breaking.



75
76
77
# File 'lib/graphql/schema_comparator/changes.rb', line 75

def breaking
  @breaking
end

#fieldObject (readonly)

Returns the value of attribute field.



75
76
77
# File 'lib/graphql/schema_comparator/changes.rb', line 75

def field
  @field
end

#input_object_typeObject (readonly)

Returns the value of attribute input_object_type.



75
76
77
# File 'lib/graphql/schema_comparator/changes.rb', line 75

def input_object_type
  @input_object_type
end

Instance Method Details

#messageObject



83
84
85
# File 'lib/graphql/schema_comparator/changes.rb', line 83

def message
  "Input field `#{field.name}` was removed from input object type `#{input_object_type.name}`"
end