Class: GraphQL::SchemaComparator::Changes::FieldArgumentDescriptionChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::FieldArgumentDescriptionChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#new_argument ⇒ Object
readonly
Returns the value of attribute new_argument.
-
#old_argument ⇒ Object
readonly
Returns the value of attribute old_argument.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDescriptionChanged
constructor
A new instance of FieldArgumentDescriptionChanged.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDescriptionChanged
Returns a new instance of FieldArgumentDescriptionChanged.
835 836 837 838 839 840 841 |
# File 'lib/graphql/schema_comparator/changes.rb', line 835 def initialize(type, field, old_argument, new_argument) @criticality = Changes::Criticality.non_breaking @type = type @field = field @old_argument = old_argument @new_argument = new_argument end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
833 834 835 |
# File 'lib/graphql/schema_comparator/changes.rb', line 833 def criticality @criticality end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
833 834 835 |
# File 'lib/graphql/schema_comparator/changes.rb', line 833 def field @field end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
833 834 835 |
# File 'lib/graphql/schema_comparator/changes.rb', line 833 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
833 834 835 |
# File 'lib/graphql/schema_comparator/changes.rb', line 833 def old_argument @old_argument end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
833 834 835 |
# File 'lib/graphql/schema_comparator/changes.rb', line 833 def type @type end |
Instance Method Details
#message ⇒ Object
843 844 845 846 |
# File 'lib/graphql/schema_comparator/changes.rb', line 843 def "Description for argument `#{new_argument.graphql_name}` on field `#{field.path}` changed"\ " from `#{old_argument.description}` to `#{new_argument.description}`" end |
#path ⇒ Object
848 849 850 |
# File 'lib/graphql/schema_comparator/changes.rb', line 848 def path old_argument.path end |