Class: GraphQL::SchemaComparator::Changes::FieldArgumentDefaultChanged
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::FieldArgumentDefaultChanged
- 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) ⇒ FieldArgumentDefaultChanged
constructor
A new instance of FieldArgumentDefaultChanged.
- #message ⇒ Object
Constructor Details
#initialize(type, field, old_argument, new_argument) ⇒ FieldArgumentDefaultChanged
Returns a new instance of FieldArgumentDefaultChanged.
322 323 324 325 326 327 328 |
# File 'lib/graphql/schema_comparator/changes.rb', line 322 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.
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def breaking @breaking end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def field @field end |
#new_argument ⇒ Object (readonly)
Returns the value of attribute new_argument.
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def new_argument @new_argument end |
#old_argument ⇒ Object (readonly)
Returns the value of attribute old_argument.
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def old_argument @old_argument end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def type @type end |
Instance Method Details
#message ⇒ Object
330 331 332 333 |
# File 'lib/graphql/schema_comparator/changes.rb', line 330 def "Default value for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\ " from `#{old_argument.default_value}` to `#{new_argument.default_value}`" end |