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
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, location) ⇒ DirectiveLocationRemoved
Returns a new instance of DirectiveLocationRemoved.
180 181 182 183 184 |
# File 'lib/graphql/schema_comparator/changes.rb', line 180 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.
178 179 180 |
# File 'lib/graphql/schema_comparator/changes.rb', line 178 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
178 179 180 |
# File 'lib/graphql/schema_comparator/changes.rb', line 178 def directive @directive end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
178 179 180 |
# File 'lib/graphql/schema_comparator/changes.rb', line 178 def location @location end |
Instance Method Details
#message ⇒ Object
186 187 188 |
# File 'lib/graphql/schema_comparator/changes.rb', line 186 def "Location `#{location}` was removed from directive `#{directive.name}`" end |