Class: Courier::Models::PreviewDeviceListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/preview_device_list_response.rb,
sig/courier/models/preview_device_list_response.rbs

Overview

See Also:

  • Courier::Resources::Previews#list_devices

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(results:) ⇒ PreviewDeviceListResponse

The full catalog of renderable devices. Not paginated.

Parameters:



# File 'lib/courier/models/preview_device_list_response.rb', line 12

Instance Attribute Details

#results ⇒ Array<Courier::Models::PreviewDevice>

Parameters:

Returns:



10
# File 'lib/courier/models/preview_device_list_response.rb', line 10

required :results, -> { Courier::Internal::Type::ArrayOf[Courier::PreviewDevice] }

Instance Method Details

#to_hash ⇒ { results: ::Array[Courier::PreviewDevice] }

Returns:



11
# File 'sig/courier/models/preview_device_list_response.rbs', line 11

def to_hash: -> { results: ::Array[Courier::PreviewDevice] }