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
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(enum_type, enum_value) ⇒ EnumValueRemoved
Returns a new instance of EnumValueRemoved.
98 99 100 101 102 |
# File 'lib/graphql/schema_comparator/changes.rb', line 98 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.
96 97 98 |
# File 'lib/graphql/schema_comparator/changes.rb', line 96 def criticality @criticality end |
#enum_type ⇒ Object (readonly)
Returns the value of attribute enum_type.
96 97 98 |
# File 'lib/graphql/schema_comparator/changes.rb', line 96 def enum_type @enum_type end |
#enum_value ⇒ Object (readonly)
Returns the value of attribute enum_value.
96 97 98 |
# File 'lib/graphql/schema_comparator/changes.rb', line 96 def enum_value @enum_value end |
Instance Method Details
#message ⇒ Object
104 105 106 |
# File 'lib/graphql/schema_comparator/changes.rb', line 104 def "Enum value `#{enum_value.name}` was removed from enum `#{enum_type.name}`" end |
#path ⇒ Object
108 109 110 |
# File 'lib/graphql/schema_comparator/changes.rb', line 108 def path [enum_type.name, enum_value.name].join('.') end |