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
-
#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
- #breaking? ⇒ Boolean
-
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDescriptionChanged
constructor
A new instance of FieldArgumentDescriptionChanged.
- #message ⇒ Object
Constructor Details
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDescriptionChanged
Returns a new instance of FieldArgumentDescriptionChanged.
391 392 393 394 395 396 397 |
# File 'lib/graphql/schema_comparator/changes.rb', line 391 def initialize(type, field, old_argument, new_argument) @type = type @field = field @old_argument = old_argument @new_argument = new_argument @breaking = false end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
389 390 391 |
# File 'lib/graphql/schema_comparator/changes.rb', line 389 def field @field end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
389 390 391 |
# File 'lib/graphql/schema_comparator/changes.rb', line 389 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
389 390 391 |
# File 'lib/graphql/schema_comparator/changes.rb', line 389 def old_argument @old_argument end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
389 390 391 |
# File 'lib/graphql/schema_comparator/changes.rb', line 389 def type @type end |
Instance Method Details
#breaking? ⇒ Boolean
404 405 406 |
# File 'lib/graphql/schema_comparator/changes.rb', line 404 def breaking? !!@breaking end |
#message ⇒ Object
399 400 401 402 |
# File 'lib/graphql/schema_comparator/changes.rb', line 399 def "Description for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\ " from `#{old_argument.description}` to `#{new_argument.description}`" end |