Class: GraphQL::SchemaComparator::Changes::DirectiveRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveRemoved
- 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.
Instance Method Summary collapse
-
#initialize(directive) ⇒ DirectiveRemoved
constructor
A new instance of DirectiveRemoved.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive) ⇒ DirectiveRemoved
Returns a new instance of DirectiveRemoved.
63 64 65 66 |
# File 'lib/graphql/schema_comparator/changes.rb', line 63 def initialize(directive) @directive = directive @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
61 62 63 |
# File 'lib/graphql/schema_comparator/changes.rb', line 61 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
61 62 63 |
# File 'lib/graphql/schema_comparator/changes.rb', line 61 def directive @directive end |
Instance Method Details
#message ⇒ Object
68 69 70 |
# File 'lib/graphql/schema_comparator/changes.rb', line 68 def "Directive `#{directive.name}` was removed" end |
#path ⇒ Object
72 73 74 |
# File 'lib/graphql/schema_comparator/changes.rb', line 72 def path "@#{directive.name}" end |