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
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#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
-
#initialize(input_type, old_field, new_field) ⇒ InputFieldDescriptionChanged
constructor
A new instance of InputFieldDescriptionChanged.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(input_type, old_field, new_field) ⇒ InputFieldDescriptionChanged
Returns a new instance of InputFieldDescriptionChanged.
776 777 778 779 780 781 |
# File 'lib/graphql/schema_comparator/changes.rb', line 776 def initialize(input_type, old_field, new_field) @criticality = Changes::Criticality.non_breaking @input_type = input_type @old_field = old_field @new_field = new_field end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
774 775 776 |
# File 'lib/graphql/schema_comparator/changes.rb', line 774 def criticality @criticality end |
#input_type ⇒ Object (readonly)
Returns the value of attribute input_type.
774 775 776 |
# File 'lib/graphql/schema_comparator/changes.rb', line 774 def input_type @input_type end |
#new_field ⇒ Object (readonly)
Returns the value of attribute new_field.
774 775 776 |
# File 'lib/graphql/schema_comparator/changes.rb', line 774 def new_field @new_field end |
#old_field ⇒ Object (readonly)
Returns the value of attribute old_field.
774 775 776 |
# File 'lib/graphql/schema_comparator/changes.rb', line 774 def old_field @old_field end |
Instance Method Details
#message ⇒ Object
783 784 785 786 |
# File 'lib/graphql/schema_comparator/changes.rb', line 783 def "Input field `#{old_field.path}` description changed"\ " from `#{old_field.description}` to `#{new_field.description}`" end |
#path ⇒ Object
788 789 790 |
# File 'lib/graphql/schema_comparator/changes.rb', line 788 def path old_field.path end |