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.
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
-
#initialize(object_type, field, argument) ⇒ FieldArgumentRemoved
constructor
A new instance of FieldArgumentRemoved.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(object_type, field, argument) ⇒ FieldArgumentRemoved
Returns a new instance of FieldArgumentRemoved.
152 153 154 155 156 157 |
# File 'lib/graphql/schema_comparator/changes.rb', line 152 def initialize(object_type, field, argument) @object_type = object_type @field = field @argument = argument @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#argument ⇒ Object (readonly)
Returns the value of attribute argument.
150 151 152 |
# File 'lib/graphql/schema_comparator/changes.rb', line 150 def argument @argument end |
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
150 151 152 |
# File 'lib/graphql/schema_comparator/changes.rb', line 150 def criticality @criticality end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
150 151 152 |
# File 'lib/graphql/schema_comparator/changes.rb', line 150 def field @field end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
150 151 152 |
# File 'lib/graphql/schema_comparator/changes.rb', line 150 def object_type @object_type end |
Instance Method Details
#message ⇒ Object
159 160 161 |
# File 'lib/graphql/schema_comparator/changes.rb', line 159 def "Argument `#{argument.name}: #{argument.type}` was removed from field `#{object_type.name}.#{field.name}`" end |
#path ⇒ Object
163 164 165 |
# File 'lib/graphql/schema_comparator/changes.rb', line 163 def path [object_type.name, field.name, argument.name].join('.') end |