Class: GraphQL::SchemaComparator::Changes::InputFieldDescriptionChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::InputFieldDescriptionChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#input_type ⇒ Object
readonly
Returns the value of attribute input_type.
-
#new_field ⇒ Object
readonly
Returns the value of attribute new_field.
-
#old_field ⇒ Object
readonly
Returns the value of attribute old_field.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(input_type, old_field, new_field) ⇒ InputFieldDescriptionChanged
constructor
A new instance of InputFieldDescriptionChanged.
- #message ⇒ Object
Constructor Details
#initialize(input_type, old_field, new_field) ⇒ InputFieldDescriptionChanged
Returns a new instance of InputFieldDescriptionChanged.
332 333 334 335 336 337 |
# File 'lib/graphql/schema_comparator/changes.rb', line 332 def initialize(input_type, old_field, new_field) @input_type = input_type @old_field = old_field @new_field = new_field @breaking = false end |
Instance Attribute Details
#input_type ⇒ Object (readonly)
Returns the value of attribute input_type.
330 331 332 |
# File 'lib/graphql/schema_comparator/changes.rb', line 330 def input_type @input_type end |
#new_field ⇒ Object (readonly)
Returns the value of attribute new_field.
330 331 332 |
# File 'lib/graphql/schema_comparator/changes.rb', line 330 def new_field @new_field end |
#old_field ⇒ Object (readonly)
Returns the value of attribute old_field.
330 331 332 |
# File 'lib/graphql/schema_comparator/changes.rb', line 330 def old_field @old_field end |
Instance Method Details
#breaking? ⇒ Boolean
344 345 346 |
# File 'lib/graphql/schema_comparator/changes.rb', line 344 def breaking? !!@breaking end |
#message ⇒ Object
339 340 341 342 |
# File 'lib/graphql/schema_comparator/changes.rb', line 339 def "Input field `#{input_type.name}.#{old_field.name}` description changed"\ " from `#{old_field.description}` to `#{new_field.description}`" end |