Class: GraphQL::SchemaComparator::Changes::UnionMemberAdded
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::UnionMemberAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#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
- #breaking? ⇒ Boolean
-
#initialize(union_type, union_member) ⇒ UnionMemberAdded
constructor
A new instance of UnionMemberAdded.
- #message ⇒ Object
Constructor Details
#initialize(union_type, union_member) ⇒ UnionMemberAdded
Returns a new instance of UnionMemberAdded.
314 315 316 317 318 |
# File 'lib/graphql/schema_comparator/changes.rb', line 314 def initialize(union_type, union_member) @union_member = union_member @union_type = union_type @breaking = false end |
Instance Attribute Details
#union_member ⇒ Object (readonly)
Returns the value of attribute union_member.
312 313 314 |
# File 'lib/graphql/schema_comparator/changes.rb', line 312 def union_member @union_member end |
#union_type ⇒ Object (readonly)
Returns the value of attribute union_type.
312 313 314 |
# File 'lib/graphql/schema_comparator/changes.rb', line 312 def union_type @union_type end |
Instance Method Details
#breaking? ⇒ Boolean
324 325 326 |
# File 'lib/graphql/schema_comparator/changes.rb', line 324 def breaking? !!@breaking end |
#message ⇒ Object
320 321 322 |
# File 'lib/graphql/schema_comparator/changes.rb', line 320 def "Union member `#{union_member.name}` was added to Union type `#{union_type.name}`" end |