Class: GraphQL::SchemaComparator::Changes::EnumValueRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::EnumValueRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#enum_type ⇒ Object
readonly
Returns the value of attribute enum_type.
-
#enum_value ⇒ Object
readonly
Returns the value of attribute enum_value.
Instance Method Summary collapse
- #breaking? ⇒ Boolean
-
#initialize(enum_type, enum_value) ⇒ EnumValueRemoved
constructor
A new instance of EnumValueRemoved.
- #message ⇒ Object
Constructor Details
#initialize(enum_type, enum_value) ⇒ EnumValueRemoved
Returns a new instance of EnumValueRemoved.
69 70 71 72 73 |
# File 'lib/graphql/schema_comparator/changes.rb', line 69 def initialize(enum_type, enum_value) @enum_value = enum_value @enum_type = enum_type @breaking = true end |
Instance Attribute Details
#enum_type ⇒ Object (readonly)
Returns the value of attribute enum_type.
67 68 69 |
# File 'lib/graphql/schema_comparator/changes.rb', line 67 def enum_type @enum_type end |
#enum_value ⇒ Object (readonly)
Returns the value of attribute enum_value.
67 68 69 |
# File 'lib/graphql/schema_comparator/changes.rb', line 67 def enum_value @enum_value end |
Instance Method Details
#breaking? ⇒ Boolean
79 80 81 |
# File 'lib/graphql/schema_comparator/changes.rb', line 79 def breaking? !!@breaking end |
#message ⇒ Object
75 76 77 |
# File 'lib/graphql/schema_comparator/changes.rb', line 75 def "Enum value `#{enum_value.name}` was removed from enum `#{enum_type.name}`" end |