Class: GraphQL::SchemaComparator::Changes::FieldDeprecationChanged
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::FieldDeprecationChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#new_field ⇒ Object
readonly
Returns the value of attribute new_field.
-
#old_field ⇒ Object
readonly
Returns the value of attribute old_field.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, old_field, new_field) ⇒ FieldDeprecationChanged
constructor
A new instance of FieldDeprecationChanged.
- #message ⇒ Object
Constructor Details
#initialize(type, old_field, new_field) ⇒ FieldDeprecationChanged
Returns a new instance of FieldDeprecationChanged.
290 291 292 293 294 295 |
# File 'lib/graphql/schema_comparator/changes.rb', line 290 def initialize(type, old_field, new_field) @type = type @old_field = old_field @new_field = new_field @breaking = false end |
Instance Attribute Details
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
288 289 290 |
# File 'lib/graphql/schema_comparator/changes.rb', line 288 def breaking @breaking end |
#new_field ⇒ Object (readonly)
Returns the value of attribute new_field.
288 289 290 |
# File 'lib/graphql/schema_comparator/changes.rb', line 288 def new_field @new_field end |
#old_field ⇒ Object (readonly)
Returns the value of attribute old_field.
288 289 290 |
# File 'lib/graphql/schema_comparator/changes.rb', line 288 def old_field @old_field end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
288 289 290 |
# File 'lib/graphql/schema_comparator/changes.rb', line 288 def type @type end |
Instance Method Details
#message ⇒ Object
297 298 299 300 |
# File 'lib/graphql/schema_comparator/changes.rb', line 297 def "Deprecation reason on field `#{type.name}.#{new_field.name}` has changed "\ "from `#{old_field.deprecation_reason}` to `#{new_field.deprecation_reason}`" end |