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
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(directive, location) ⇒ DirectiveLocationAdded
constructor
A new instance of DirectiveLocationAdded.
- #message ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, location) ⇒ DirectiveLocationAdded
Returns a new instance of DirectiveLocationAdded.
679 680 681 682 683 |
# File 'lib/graphql/schema_comparator/changes.rb', line 679 def initialize(directive, location) @criticality = Changes::Criticality.non_breaking @directive = directive @location = location end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
677 678 679 |
# File 'lib/graphql/schema_comparator/changes.rb', line 677 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
677 678 679 |
# File 'lib/graphql/schema_comparator/changes.rb', line 677 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
677 678 679 |
# File 'lib/graphql/schema_comparator/changes.rb', line 677 def location @location end |
Instance Method Details
#message ⇒ Object
685 686 687 |
# File 'lib/graphql/schema_comparator/changes.rb', line 685 def "Location `#{location}` was added to directive `#{directive.name}`" end |