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
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#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
-
#initialize(enum_type, enum_value) ⇒ EnumValueRemoved
constructor
A new instance of EnumValueRemoved.
- #message ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(enum_type, enum_value) ⇒ EnumValueRemoved
Returns a new instance of EnumValueRemoved.
81 82 83 84 85 |
# File 'lib/graphql/schema_comparator/changes.rb', line 81 def initialize(enum_type, enum_value) @enum_value = enum_value @enum_type = enum_type @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
79 80 81 |
# File 'lib/graphql/schema_comparator/changes.rb', line 79 def criticality @criticality end |
#enum_type ⇒ Object (readonly)
Returns the value of attribute enum_type.
79 80 81 |
# File 'lib/graphql/schema_comparator/changes.rb', line 79 def enum_type @enum_type end |
#enum_value ⇒ Object (readonly)
Returns the value of attribute enum_value.
79 80 81 |
# File 'lib/graphql/schema_comparator/changes.rb', line 79 def enum_value @enum_value end |
Instance Method Details
#message ⇒ Object
87 88 89 |
# File 'lib/graphql/schema_comparator/changes.rb', line 87 def "Enum value `#{enum_value.name}` was removed from enum `#{enum_type.name}`" end |