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.
675 676 677 678 679 |
# File 'lib/graphql/schema_comparator/changes.rb', line 675 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.
673 674 675 |
# File 'lib/graphql/schema_comparator/changes.rb', line 673 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
673 674 675 |
# File 'lib/graphql/schema_comparator/changes.rb', line 673 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
673 674 675 |
# File 'lib/graphql/schema_comparator/changes.rb', line 673 def location @location end |
Instance Method Details
#message ⇒ Object
681 682 683 |
# File 'lib/graphql/schema_comparator/changes.rb', line 681 def "Location `#{location}` was added to directive `#{directive.name}`" end |