Class: GraphQL::SchemaComparator::Changes::DirectiveArgumentDescriptionChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::DirectiveArgumentDescriptionChanged
- 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.
-
#new_argument ⇒ Object
readonly
Returns the value of attribute new_argument.
-
#old_argument ⇒ Object
readonly
Returns the value of attribute old_argument.
Instance Method Summary collapse
-
#initialize(directive, old_argument, new_argument) ⇒ DirectiveArgumentDescriptionChanged
constructor
A new instance of DirectiveArgumentDescriptionChanged.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(directive, old_argument, new_argument) ⇒ DirectiveArgumentDescriptionChanged
Returns a new instance of DirectiveArgumentDescriptionChanged.
856 857 858 859 860 861 |
# File 'lib/graphql/schema_comparator/changes.rb', line 856 def initialize(directive, old_argument, new_argument) @criticality = Changes::Criticality.non_breaking @directive = directive @old_argument = old_argument @new_argument = new_argument end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
854 855 856 |
# File 'lib/graphql/schema_comparator/changes.rb', line 854 def criticality @criticality end |
#directive ⇒ Object (readonly)
Returns the value of attribute directive.
854 855 856 |
# File 'lib/graphql/schema_comparator/changes.rb', line 854 def directive @directive end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
854 855 856 |
# File 'lib/graphql/schema_comparator/changes.rb', line 854 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
854 855 856 |
# File 'lib/graphql/schema_comparator/changes.rb', line 854 def old_argument @old_argument end |
Instance Method Details
#message ⇒ Object
863 864 865 866 |
# File 'lib/graphql/schema_comparator/changes.rb', line 863 def "Description for argument `#{new_argument.graphql_name}` on directive `#{directive.graphql_name}` changed"\ " from `#{old_argument.description}` to `#{new_argument.description}`" end |
#path ⇒ Object
868 869 870 |
# File 'lib/graphql/schema_comparator/changes.rb', line 868 def path ["@#{directive.graphql_name}", old_argument.graphql_name].join(".") end |