Class: GraphQL::SchemaComparator::Changes::DirectiveLocationAdded
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveLocationAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(directive, location) ⇒ DirectiveLocationAdded
constructor
A new instance of DirectiveLocationAdded.
- #message ⇒ Object
Constructor Details
#initialize(directive, location) ⇒ DirectiveLocationAdded
Returns a new instance of DirectiveLocationAdded.
549 550 551 552 553 |
# File 'lib/graphql/schema_comparator/changes.rb', line 549 def initialize(directive, location) @directive = directive @location = location @breaking = false end |
Instance Attribute Details
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
547 548 549 |
# File 'lib/graphql/schema_comparator/changes.rb', line 547 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
547 548 549 |
# File 'lib/graphql/schema_comparator/changes.rb', line 547 def location @location end |
Instance Method Details
#breaking? ⇒ Boolean
559 560 561 |
# File 'lib/graphql/schema_comparator/changes.rb', line 559 def breaking? !!@breaking end |
#message ⇒ Object
555 556 557 |
# File 'lib/graphql/schema_comparator/changes.rb', line 555 def "Location `#{location}` was added to directive `#{directive.name}`" end |