Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentDescriptionChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveArgumentDescriptionChanged
- 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) ⇒ DirectiveArgumentDescriptionChanged
constructor
A new instance of DirectiveArgumentDescriptionChanged.
- #message ⇒ Object
Constructor Details
#initialize(directive, old_argument, new_argument) ⇒ DirectiveArgumentDescriptionChanged
Returns a new instance of DirectiveArgumentDescriptionChanged.
412 413 414 415 416 417 |
# File 'lib/graphql/schema_comparator/changes.rb', line 412 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.
410 411 412 |
# File 'lib/graphql/schema_comparator/changes.rb', line 410 def directive @directive end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
410 411 412 |
# File 'lib/graphql/schema_comparator/changes.rb', line 410 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
410 411 412 |
# File 'lib/graphql/schema_comparator/changes.rb', line 410 def old_argument @old_argument end |
Instance Method Details
#breaking? ⇒ Boolean
424 425 426 |
# File 'lib/graphql/schema_comparator/changes.rb', line 424 def breaking? !!@breaking end |
#message ⇒ Object
419 420 421 422 |
# File 'lib/graphql/schema_comparator/changes.rb', line 419 def "Description for argument `#{new_argument.name}` on directive `#{directive.name}` changed"\ " from `#{old_argument.description}` to `#{new_argument.description}`" end |