Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentAdded
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveArgumentAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#argument ⇒ Object
readonly
Returns the value of attribute argument.
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(directive, argument) ⇒ DirectiveArgumentAdded
constructor
A new instance of DirectiveArgumentAdded.
- #message ⇒ Object
Constructor Details
#initialize(directive, argument) ⇒ DirectiveArgumentAdded
Returns a new instance of DirectiveArgumentAdded.
749 750 751 752 753 |
# File 'lib/graphql/schema_comparator/changes.rb', line 749 def initialize(directive, argument) @directive = directive @argument = argument @breaking = false end |
Instance Attribute Details
#argument ⇒ Object (readonly)
Returns the value of attribute argument.
747 748 749 |
# File 'lib/graphql/schema_comparator/changes.rb', line 747 def argument @argument end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
747 748 749 |
# File 'lib/graphql/schema_comparator/changes.rb', line 747 def directive @directive end |
Instance Method Details
#breaking? ⇒ Boolean
759 760 761 |
# File 'lib/graphql/schema_comparator/changes.rb', line 759 def breaking? !!@breaking end |
#message ⇒ Object
755 756 757 |
# File 'lib/graphql/schema_comparator/changes.rb', line 755 def "Argument `#{argument.name}` was added to directive `#{directive.name}`" end |