Class: GraphQL::SchemaComparator::Changes::FieldArgumentRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::FieldArgumentRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#argument ⇒ Object
readonly
Returns the value of attribute argument.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(object_type, field, argument) ⇒ FieldArgumentRemoved
constructor
A new instance of FieldArgumentRemoved.
- #message ⇒ Object
Constructor Details
#initialize(object_type, field, argument) ⇒ FieldArgumentRemoved
Returns a new instance of FieldArgumentRemoved.
123 124 125 126 127 128 |
# File 'lib/graphql/schema_comparator/changes.rb', line 123 def initialize(object_type, field, argument) @object_type = object_type @field = field @argument = argument @breaking = true end |
Instance Attribute Details
#argument ⇒ Object (readonly)
Returns the value of attribute argument.
121 122 123 |
# File 'lib/graphql/schema_comparator/changes.rb', line 121 def argument @argument end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
121 122 123 |
# File 'lib/graphql/schema_comparator/changes.rb', line 121 def field @field end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
121 122 123 |
# File 'lib/graphql/schema_comparator/changes.rb', line 121 def object_type @object_type end |
Instance Method Details
#breaking? ⇒ Boolean
134 135 136 |
# File 'lib/graphql/schema_comparator/changes.rb', line 134 def breaking? !!@breaking end |
#message ⇒ Object
130 131 132 |
# File 'lib/graphql/schema_comparator/changes.rb', line 130 def "Argument `#{argument.name}: #{argument.type}` was removed from field `#{object_type.name}.#{field.name}`" end |