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
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#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
-
#initialize(input_object_type, field) ⇒ InputFieldRemoved
constructor
A new instance of InputFieldRemoved.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(input_object_type, field) ⇒ InputFieldRemoved
Returns a new instance of InputFieldRemoved.
134 135 136 137 138 |
# File 'lib/graphql/schema_comparator/changes.rb', line 134 def initialize(input_object_type, field) @input_object_type = input_object_type @field = field @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
132 133 134 |
# File 'lib/graphql/schema_comparator/changes.rb', line 132 def criticality @criticality end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
132 133 134 |
# File 'lib/graphql/schema_comparator/changes.rb', line 132 def field @field end |
#input_object_type ⇒ Object (readonly)
Returns the value of attribute input_object_type.
132 133 134 |
# File 'lib/graphql/schema_comparator/changes.rb', line 132 def input_object_type @input_object_type end |
Instance Method Details
#message ⇒ Object
140 141 142 |
# File 'lib/graphql/schema_comparator/changes.rb', line 140 def "Input field `#{field.name}` was removed from input object type `#{input_object_type.name}`" end |
#path ⇒ Object
144 145 146 |
# File 'lib/graphql/schema_comparator/changes.rb', line 144 def path [input_object_type.name, field.name].join('.') end |