Method: GraphQL::Schema::TypeMembership#initialize
- Defined in:
- lib/graphql/schema/type_membership.rb
#initialize(abstract_type, object_type, **options) ⇒ TypeMembership
Called when an object is hooked up to an abstract type, such as Union.possible_types or Schema::Object.implements (for interfaces).
23 24 25 26 27 |
# File 'lib/graphql/schema/type_membership.rb', line 23 def initialize(abstract_type, object_type, **) @abstract_type = abstract_type @object_type = object_type @options = end |