Class: GraphQL::SchemaComparator::Changes::FieldRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::FieldRemoved
- 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.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
-
#initialize(object_type, field) ⇒ FieldRemoved
constructor
A new instance of FieldRemoved.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(object_type, field) ⇒ FieldRemoved
207 208 209 210 211 |
# File 'lib/graphql/schema_comparator/changes.rb', line 207 def initialize(object_type, field) @object_type = object_type @field = field @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
205 206 207 |
# File 'lib/graphql/schema_comparator/changes.rb', line 205 def criticality @criticality end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
205 206 207 |
# File 'lib/graphql/schema_comparator/changes.rb', line 205 def field @field end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
205 206 207 |
# File 'lib/graphql/schema_comparator/changes.rb', line 205 def object_type @object_type end |
Instance Method Details
#message ⇒ Object
213 214 215 |
# File 'lib/graphql/schema_comparator/changes.rb', line 213 def "Field `#{field.name}` was removed from object type `#{object_type.name}`" end |
#path ⇒ Object
217 218 219 |
# File 'lib/graphql/schema_comparator/changes.rb', line 217 def path [object_type.name, field.name].join('.') end |