Class: GraphQL::SchemaComparator::Changes::DirectiveAdded
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(directive) ⇒ DirectiveAdded
constructor
A new instance of DirectiveAdded.
- #message ⇒ Object
Constructor Details
#initialize(directive) ⇒ DirectiveAdded
Returns a new instance of DirectiveAdded.
249 250 251 252 |
# File 'lib/graphql/schema_comparator/changes.rb', line 249 def initialize(directive) @directive = directive @breaking = false end |
Instance Attribute Details
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
247 248 249 |
# File 'lib/graphql/schema_comparator/changes.rb', line 247 def directive @directive end |
Instance Method Details
#breaking? ⇒ Boolean
258 259 260 |
# File 'lib/graphql/schema_comparator/changes.rb', line 258 def breaking? !!@breaking end |
#message ⇒ Object
254 255 256 |
# File 'lib/graphql/schema_comparator/changes.rb', line 254 def "Directive `#{directive.name}` was added" end |