Class: Taro::Types::InputType

Inherits:
ObjectType
  • Object
show all
Defined in:
lib/taro/types/input_type.rb

Overview

Abstract base class for input types, i.e. types without response rendering.

Instance Method Summary collapse

Methods included from Shared::Fields

#field, #fields

Methods included from Shared::ObjectCoercion

#coerce_input

Methods included from Shared::CustomFieldResolvers

included, #resolve?

Instance Method Details

#coerce_responseObject



5
6
7
# File 'lib/taro/types/input_type.rb', line 5

def coerce_response
  response_error "#{self.class.name} is an InputType and cannot be used as response type"
end