Class: GraphQL::SchemaComparator::Changes::FieldArgumentDescriptionChanged

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema_comparator/changes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#breakingObject (readonly)

Returns the value of attribute breaking.



266
267
268
# File 'lib/graphql/schema_comparator/changes.rb', line 266

def breaking
  @breaking
end

#fieldObject (readonly)

Returns the value of attribute field.



266
267
268
# File 'lib/graphql/schema_comparator/changes.rb', line 266

def field
  @field
end

#new_argumentObject (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_argumentObject (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

#typeObject (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

#messageObject



276
277
278
279
# File 'lib/graphql/schema_comparator/changes.rb', line 276

def message
  "Description for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\
    " from `#{old_argument.description}` to `#{new_argument.description}`"
end