Class: GraphQL::Coverage::Call

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/coverage/call.rb

Overview

rubocop:enable Naming/ConstantName

Class Method Summary collapse

Class Method Details

.from_graphql_object(field:, result_type:) ⇒ Object



10
11
12
# File 'lib/graphql/coverage/call.rb', line 10

def self.from_graphql_object(field:, result_type:)
  new(type: field.owner.graphql_name, field: field.graphql_name, result_type: result_type)
end