Class: Apiwork::Introspection::Param::Unknown

Inherits:
Base
  • Object
show all
Defined in:
lib/apiwork/introspection/param/unknown.rb

Overview

Unknown param representing an unrecognized type.

Used as a fallback when the type cannot be determined during introspection.

Examples:

Basic usage

param.type # => :unknown
param.unknown? # => true
param.scalar? # => false

Instance Method Summary collapse

Methods inherited from Base

#array?, #binary?, #boolean?, #boundable?, #concrete?, #date?, #datetime?, #decimal?, #default?, #deprecated?, #description, #enum?, #enum_reference?, #formattable?, #initialize, #integer?, #literal?, #nullable?, #number?, #numeric?, #object?, #optional?, #partial?, #record?, #reference?, #scalar?, #string?, #tag, #time?, #to_h, #type, #union?, #uuid?

Constructor Details

This class inherits a constructor from Apiwork::Introspection::Param::Base

Instance Method Details

#unknown?Boolean

Whether this param is of unknown type.

Returns:



20
21
22
# File 'lib/apiwork/introspection/param/unknown.rb', line 20

def unknown?
  true
end