Class: GraphQL::SchemaComparator::Changes::InputFieldDefaultChanged
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::InputFieldDefaultChanged
- 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) ⇒ InputFieldDefaultChanged
constructor
A new instance of InputFieldDefaultChanged.
- #message ⇒ Object
Constructor Details
#initialize(input_type, old_field, new_field) ⇒ InputFieldDefaultChanged
Returns a new instance of InputFieldDefaultChanged.
306 307 308 309 310 311 |
# File 'lib/graphql/schema_comparator/changes.rb', line 306 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.
304 305 306 |
# File 'lib/graphql/schema_comparator/changes.rb', line 304 def breaking @breaking end |
#input_type ⇒ Object (readonly)
Returns the value of attribute input_type.
304 305 306 |
# File 'lib/graphql/schema_comparator/changes.rb', line 304 def input_type @input_type end |
#new_field ⇒ Object (readonly)
Returns the value of attribute new_field.
304 305 306 |
# File 'lib/graphql/schema_comparator/changes.rb', line 304 def new_field @new_field end |
#old_field ⇒ Object (readonly)
Returns the value of attribute old_field.
304 305 306 |
# File 'lib/graphql/schema_comparator/changes.rb', line 304 def old_field @old_field end |
Instance Method Details
#message ⇒ Object
313 314 315 316 |
# File 'lib/graphql/schema_comparator/changes.rb', line 313 def "Input field `#{input_type.name}.#{old_field.name}` default changed"\ " from `#{old_field.default_value}` to `#{new_field.default_value}`" end |