Class: GraphQL::SchemaComparator::Changes::UnionMemberRemoved
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::UnionMemberRemoved
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#union_member ⇒ Object
readonly
Returns the value of attribute union_member.
-
#union_type ⇒ Object
readonly
Returns the value of attribute union_type.
Instance Method Summary collapse
-
#initialize(union_type, union_member) ⇒ UnionMemberRemoved
constructor
A new instance of UnionMemberRemoved.
- #message ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(union_type, union_member) ⇒ UnionMemberRemoved
Returns a new instance of UnionMemberRemoved.
95 96 97 98 99 |
# File 'lib/graphql/schema_comparator/changes.rb', line 95 def initialize(union_type, union_member) @union_member = union_member @union_type = union_type @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
93 94 95 |
# File 'lib/graphql/schema_comparator/changes.rb', line 93 def criticality @criticality end |
#union_member ⇒ Object (readonly)
Returns the value of attribute union_member.
93 94 95 |
# File 'lib/graphql/schema_comparator/changes.rb', line 93 def union_member @union_member end |
#union_type ⇒ Object (readonly)
Returns the value of attribute union_type.
93 94 95 |
# File 'lib/graphql/schema_comparator/changes.rb', line 93 def union_type @union_type end |
Instance Method Details
#message ⇒ Object
101 102 103 |
# File 'lib/graphql/schema_comparator/changes.rb', line 101 def "Union member `#{union_member.name}` was removed from Union type `#{union_type.name}`" end |