Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentDefaultChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveArgumentDefaultChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
-
#new_argument ⇒ Object
readonly
Returns the value of attribute new_argument.
-
#old_argument ⇒ Object
readonly
Returns the value of attribute old_argument.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(directive, old_argument, new_argument) ⇒ DirectiveArgumentDefaultChanged
constructor
A new instance of DirectiveArgumentDefaultChanged.
- #message ⇒ Object
Constructor Details
#initialize(directive, old_argument, new_argument) ⇒ DirectiveArgumentDefaultChanged
Returns a new instance of DirectiveArgumentDefaultChanged.
493 494 495 496 497 498 |
# File 'lib/graphql/schema_comparator/changes.rb', line 493 def initialize(directive, old_argument, new_argument) @directive = directive @old_argument = old_argument @new_argument = new_argument @breaking = false end |
Instance Attribute Details
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
491 492 493 |
# File 'lib/graphql/schema_comparator/changes.rb', line 491 def directive @directive end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
491 492 493 |
# File 'lib/graphql/schema_comparator/changes.rb', line 491 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
491 492 493 |
# File 'lib/graphql/schema_comparator/changes.rb', line 491 def old_argument @old_argument end |
Instance Method Details
#breaking? ⇒ Boolean
505 506 507 |
# File 'lib/graphql/schema_comparator/changes.rb', line 505 def breaking? !!@breaking end |
#message ⇒ Object
500 501 502 503 |
# File 'lib/graphql/schema_comparator/changes.rb', line 500 def "Default value for argument `#{new_argument.name}` on directive `#{directive.name}` changed"\ " from `#{old_argument.default_value}` to `#{new_argument.default_value}`" end |