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
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, argument) ⇒ DirectiveArgumentRemoved
Returns a new instance of DirectiveArgumentRemoved.
189 190 191 192 193 |
# File 'lib/graphql/schema_comparator/changes.rb', line 189 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.
187 188 189 |
# File 'lib/graphql/schema_comparator/changes.rb', line 187 def argument @argument end |
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
187 188 189 |
# File 'lib/graphql/schema_comparator/changes.rb', line 187 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
187 188 189 |
# File 'lib/graphql/schema_comparator/changes.rb', line 187 def directive @directive end |
Instance Method Details
#message ⇒ Object
195 196 197 |
# File 'lib/graphql/schema_comparator/changes.rb', line 195 def "Argument `#{argument.graphql_name}` was removed from directive `#{directive.graphql_name}`" end |
#path ⇒ Object
199 200 201 |
# File 'lib/graphql/schema_comparator/changes.rb', line 199 def path ["@#{directive.graphql_name}", argument.graphql_name].join('.') end |