Class: GraphQL::SchemaComparator::Changes::DirectiveLocationRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveLocationRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(directive, location) ⇒ DirectiveLocationRemoved
constructor
A new instance of DirectiveLocationRemoved.
- #message ⇒ Object
Constructor Details
#initialize(directive, location) ⇒ DirectiveLocationRemoved
Returns a new instance of DirectiveLocationRemoved.
196 197 198 199 200 |
# File 'lib/graphql/schema_comparator/changes.rb', line 196 def initialize(directive, location) @directive = directive @location = location @breaking = true end |
Instance Attribute Details
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
194 195 196 |
# File 'lib/graphql/schema_comparator/changes.rb', line 194 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
194 195 196 |
# File 'lib/graphql/schema_comparator/changes.rb', line 194 def location @location end |
Instance Method Details
#breaking? ⇒ Boolean
206 207 208 |
# File 'lib/graphql/schema_comparator/changes.rb', line 206 def breaking? !!@breaking end |
#message ⇒ Object
202 203 204 |
# File 'lib/graphql/schema_comparator/changes.rb', line 202 def "Location `#{location}` was removed from directive `#{directive.name}`" end |