Class: GraphQL::SchemaComparator::Changes::EnumValueAdded
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::EnumValueAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#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) ⇒ EnumValueAdded
constructor
A new instance of EnumValueAdded.
- #message ⇒ Object
Constructor Details
#initialize(enum_type, enum_value) ⇒ EnumValueAdded
Returns a new instance of EnumValueAdded.
193 194 195 196 197 |
# File 'lib/graphql/schema_comparator/changes.rb', line 193 def initialize(enum_type, enum_value) @enum_type = enum_type @enum_value = enum_value @breaking = false end |
Instance Attribute Details
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
191 192 193 |
# File 'lib/graphql/schema_comparator/changes.rb', line 191 def breaking @breaking end |
#enum_type ⇒ Object (readonly)
Returns the value of attribute enum_type.
191 192 193 |
# File 'lib/graphql/schema_comparator/changes.rb', line 191 def enum_type @enum_type end |
#enum_value ⇒ Object (readonly)
Returns the value of attribute enum_value.
191 192 193 |
# File 'lib/graphql/schema_comparator/changes.rb', line 191 def enum_value @enum_value end |
Instance Method Details
#message ⇒ Object
199 200 201 |
# File 'lib/graphql/schema_comparator/changes.rb', line 199 def "Enum value `#{enum_value.name}` was added to enum `#{enum_type.name}`" end |