Class: GraphQL::SchemaComparator::Changes::FieldRemoved
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::FieldRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#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
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
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
122 123 124 |
# File 'lib/graphql/schema_comparator/changes.rb', line 122 def breaking @breaking end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
122 123 124 |
# File 'lib/graphql/schema_comparator/changes.rb', line 122 def field @field end |
#object_type ⇒ Object (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
#message ⇒ Object
130 131 132 |
# File 'lib/graphql/schema_comparator/changes.rb', line 130 def "Field `#{field.name}` was removed from object type `#{object_type.name}`" end |