Class: GraphQL::Client::FragmentDefinition

Inherits:
Definition
  • Object
show all
Defined in:
lib/graphql/client/fragment_definition.rb

Overview

Specific fragment definition subtype.

Instance Attribute Summary

Attributes inherited from Definition

#definition_node, #document, #document_types, #enforce_collocated_callers, #schema, #source_location

Instance Method Summary collapse

Methods inherited from Definition

#definition_name, for, #initialize, #type

Constructor Details

This class inherits a constructor from GraphQL::Client::Definition

Instance Method Details

#new(obj, *args) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/graphql/client/fragment_definition.rb', line 10

def new(obj, *args)
  if obj.is_a?(Hash)
    GraphQL::Client::Deprecation.warn("constructing fragment wrapper from Hash is deprecated")
  end

  super
end