Class: GraphQL::SchemaComparator::Changes::UnionMemberAdded
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::UnionMemberAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#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) ⇒ UnionMemberAdded
constructor
A new instance of UnionMemberAdded.
- #message ⇒ Object
Constructor Details
#initialize(union_type, union_member) ⇒ UnionMemberAdded
217 218 219 220 221 |
# File 'lib/graphql/schema_comparator/changes.rb', line 217 def initialize(union_type, union_member) @union_member = union_member @union_type = union_type @breaking = false end |
Instance Attribute Details
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
215 216 217 |
# File 'lib/graphql/schema_comparator/changes.rb', line 215 def breaking @breaking end |
#union_member ⇒ Object (readonly)
Returns the value of attribute union_member.
215 216 217 |
# File 'lib/graphql/schema_comparator/changes.rb', line 215 def union_member @union_member end |
#union_type ⇒ Object (readonly)
Returns the value of attribute union_type.
215 216 217 |
# File 'lib/graphql/schema_comparator/changes.rb', line 215 def union_type @union_type end |
Instance Method Details
#message ⇒ Object
223 224 225 |
# File 'lib/graphql/schema_comparator/changes.rb', line 223 def "Union member `#{union_member.name}` was added to Union type `#{union_type.name}`" end |