Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveArgumentRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#argument ⇒ Object
readonly
Returns the value of attribute argument.
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#directive ⇒ Object
readonly
Returns the value of attribute directive.
Instance Method Summary collapse
-
#initialize(directive, argument) ⇒ DirectiveArgumentRemoved
constructor
A new instance of DirectiveArgumentRemoved.
- #message ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, argument) ⇒ DirectiveArgumentRemoved
Returns a new instance of DirectiveArgumentRemoved.
138 139 140 141 142 |
# File 'lib/graphql/schema_comparator/changes.rb', line 138 def initialize(directive, argument) @directive = directive @argument = argument @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#argument ⇒ Object (readonly)
Returns the value of attribute argument.
136 137 138 |
# File 'lib/graphql/schema_comparator/changes.rb', line 136 def argument @argument end |
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
136 137 138 |
# File 'lib/graphql/schema_comparator/changes.rb', line 136 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
136 137 138 |
# File 'lib/graphql/schema_comparator/changes.rb', line 136 def directive @directive end |
Instance Method Details
#message ⇒ Object
144 145 146 |
# File 'lib/graphql/schema_comparator/changes.rb', line 144 def "Argument `#{argument.name}` was removed from directive `#{directive.name}`" end |