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
-
#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) ⇒ DirectiveLocationRemoved
constructor
A new instance of DirectiveLocationRemoved.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, location) ⇒ DirectiveLocationRemoved
Returns a new instance of DirectiveLocationRemoved.
325 326 327 328 329 |
# File 'lib/graphql/schema_comparator/changes.rb', line 325 def initialize(directive, location) @directive = directive @location = location @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
323 324 325 |
# File 'lib/graphql/schema_comparator/changes.rb', line 323 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
323 324 325 |
# File 'lib/graphql/schema_comparator/changes.rb', line 323 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
323 324 325 |
# File 'lib/graphql/schema_comparator/changes.rb', line 323 def location @location end |
Instance Method Details
#message ⇒ Object
331 332 333 |
# File 'lib/graphql/schema_comparator/changes.rb', line 331 def "Location `#{location}` was removed from directive `#{directive.graphql_name}`" end |
#path ⇒ Object
335 336 337 |
# File 'lib/graphql/schema_comparator/changes.rb', line 335 def path "@#{directive.graphql_name}" end |