Class: GraphQL::SchemaComparator::Changes::FieldArgumentRemoved

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_type, field, argument) ⇒ FieldArgumentRemoved

Returns a new instance of FieldArgumentRemoved.



91
92
93
94
95
96
# File 'lib/graphql/schema_comparator/changes.rb', line 91

def initialize(object_type, field, argument)
  @object_type = object_type
  @field = field
  @argument = argument
  @breaking = true
end

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument.



89
90
91
# File 'lib/graphql/schema_comparator/changes.rb', line 89

def argument
  @argument
end

#breakingObject (readonly)

Returns the value of attribute breaking.



89
90
91
# File 'lib/graphql/schema_comparator/changes.rb', line 89

def breaking
  @breaking
end

#fieldObject (readonly)

Returns the value of attribute field.



89
90
91
# File 'lib/graphql/schema_comparator/changes.rb', line 89

def field
  @field
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



89
90
91
# File 'lib/graphql/schema_comparator/changes.rb', line 89

def object_type
  @object_type
end

Instance Method Details

#messageObject



98
99
100
# File 'lib/graphql/schema_comparator/changes.rb', line 98

def message
  "Argument `#{argument.name}: #{argument.type}` was removed from field `#{object_type.name}.#{field.name}`"
end