Module: Straddle::Models::ResponseType

Extended by:
Internal::Type::Enum
Defined in:
lib/straddle/models/response_type.rb,
sig/straddle/models/response_type.rbs

Overview

Shape of the response envelope.

  • object means data contains one JSON object.
  • array means data contains an array of JSON objects.
  • error means error contains the error details.
  • none means the response contains no data.

Constant Summary collapse

OBJECT =

Returns:

  • (:object)
:object
ARRAY =

Returns:

  • (:array)
:array
ERROR =

Returns:

  • (:error)
:error
NONE =

Returns:

  • (:none)
:none

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/straddle/models/response_type.rb', line 19

Instance Method Details

#self?.values ⇒ ::Array[Straddle::Models::response_type]

Returns:

  • (::Array[Straddle::Models::response_type])


13
# File 'sig/straddle/models/response_type.rbs', line 13

def self?.values: -> ::Array[Straddle::Models::response_type]