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
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive) ⇒ DirectiveRemoved
Returns a new instance of DirectiveRemoved.
54 55 56 57 |
# File 'lib/graphql/schema_comparator/changes.rb', line 54 def initialize(directive) @directive = directive @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
52 53 54 |
# File 'lib/graphql/schema_comparator/changes.rb', line 52 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
52 53 54 |
# File 'lib/graphql/schema_comparator/changes.rb', line 52 def directive @directive end |
Instance Method Details
#message ⇒ Object
59 60 61 |
# File 'lib/graphql/schema_comparator/changes.rb', line 59 def "`#{directive.name}` was removed" end |