Class: GraphQL::SchemaComparator::Changes::InputFieldDescriptionChanged
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::InputFieldDescriptionChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#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
Constructor Details
#initialize(input_type, old_field, new_field) ⇒ InputFieldDescriptionChanged
Returns a new instance of InputFieldDescriptionChanged.
231 232 233 234 235 236 |
# File 'lib/graphql/schema_comparator/changes.rb', line 231 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
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
229 230 231 |
# File 'lib/graphql/schema_comparator/changes.rb', line 229 def breaking @breaking end |
#input_type ⇒ Object (readonly)
Returns the value of attribute input_type.
229 230 231 |
# File 'lib/graphql/schema_comparator/changes.rb', line 229 def input_type @input_type end |
#new_field ⇒ Object (readonly)
Returns the value of attribute new_field.
229 230 231 |
# File 'lib/graphql/schema_comparator/changes.rb', line 229 def new_field @new_field end |
#old_field ⇒ Object (readonly)
Returns the value of attribute old_field.
229 230 231 |
# File 'lib/graphql/schema_comparator/changes.rb', line 229 def old_field @old_field end |
Instance Method Details
#message ⇒ Object
238 239 240 241 |
# File 'lib/graphql/schema_comparator/changes.rb', line 238 def "Input field `#{input_type.name}.#{old_field.name}` description changed"\ " from `#{old_field.description}` to `#{new_field.description}`" end |