Class: GraphQL::SchemaComparator::Changes::FieldArgumentDescriptionChanged
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::FieldArgumentDescriptionChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#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
Constructor Details
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDescriptionChanged
268 269 270 271 272 273 274 |
# File 'lib/graphql/schema_comparator/changes.rb', line 268 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
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
266 267 268 |
# File 'lib/graphql/schema_comparator/changes.rb', line 266 def breaking @breaking end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
266 267 268 |
# File 'lib/graphql/schema_comparator/changes.rb', line 266 def field @field end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
266 267 268 |
# File 'lib/graphql/schema_comparator/changes.rb', line 266 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
266 267 268 |
# File 'lib/graphql/schema_comparator/changes.rb', line 266 def old_argument @old_argument end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
266 267 268 |
# File 'lib/graphql/schema_comparator/changes.rb', line 266 def type @type end |
Instance Method Details
#message ⇒ Object
276 277 278 279 |
# File 'lib/graphql/schema_comparator/changes.rb', line 276 def "Description for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\ " from `#{old_argument.description}` to `#{new_argument.description}`" end |