class GraphQL::Client::FragmentDefinition

Specific fragment definition subtype.

Public Instance Methods

new(obj, *args) click to toggle source
Calls superclass method GraphQL::Client::Definition::new
# File lib/graphql/client/fragment_definition.rb, line 9
def new(obj, *args)
  if obj.is_a?(Hash)
    raise TypeError, "constructing fragment wrapper from Hash is deprecated"
  end

  super
end