Class: GraphQL::SchemaComparator::Changes::UnionMemberAdded

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema_comparator/changes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#breakingObject (readonly)

Returns the value of attribute breaking.



215
216
217
# File 'lib/graphql/schema_comparator/changes.rb', line 215

def breaking
  @breaking
end

#union_memberObject (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_typeObject (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

#messageObject



223
224
225
# File 'lib/graphql/schema_comparator/changes.rb', line 223

def message
  "Union member `#{union_member.name}` was added to Union type `#{union_type.name}`"
end