Class: GraphQL::SchemaComparator::Changes::InputFieldRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::InputFieldRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#input_object_type ⇒ Object
readonly
Returns the value of attribute input_object_type.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(input_object_type, field) ⇒ InputFieldRemoved
constructor
A new instance of InputFieldRemoved.
- #message ⇒ Object
Constructor Details
#initialize(input_object_type, field) ⇒ InputFieldRemoved
Returns a new instance of InputFieldRemoved.
105 106 107 108 109 |
# File 'lib/graphql/schema_comparator/changes.rb', line 105 def initialize(input_object_type, field) @input_object_type = input_object_type @field = field @breaking = true end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
103 104 105 |
# File 'lib/graphql/schema_comparator/changes.rb', line 103 def field @field end |
#input_object_type ⇒ Object (readonly)
Returns the value of attribute input_object_type.
103 104 105 |
# File 'lib/graphql/schema_comparator/changes.rb', line 103 def input_object_type @input_object_type end |
Instance Method Details
#breaking? ⇒ Boolean
115 116 117 |
# File 'lib/graphql/schema_comparator/changes.rb', line 115 def breaking? !!@breaking end |
#message ⇒ Object
111 112 113 |
# File 'lib/graphql/schema_comparator/changes.rb', line 111 def "Input field `#{field.name}` was removed from input object type `#{input_object_type.name}`" end |