Class: Courier::Models::DeviceSet
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::DeviceSet
- Defined in:
- lib/courier/models/device_set.rb,
sig/courier/models/device_set.rbs
Overview
Instance Attribute Summary collapse
-
#archived_at ⇒ String?
ISO-8601 timestamp of when the set was archived.
-
#created_at ⇒ String
ISO-8601 timestamp of when the set was created.
-
#device_ids ⇒ Array<String>
The devices in this set, by
PreviewDevice.id. -
#id ⇒ String
Unique identifier for the device set.
-
#name ⇒ String
Human-readable name.
-
#updated_at ⇒ String
ISO-8601 timestamp of when the set was last written.
Instance Method Summary collapse
-
#initialize(id:, created_at:, device_ids:, name:, updated_at:, archived_at: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see DeviceSet for more details.
- #to_hash ⇒ {
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(id:, created_at:, device_ids:, name:, updated_at:, archived_at: nil) ⇒ Object
Some parameter documentations has been truncated, see Courier::Models::DeviceSet for more details.
A named, reusable list of preview devices.
|
|
# File 'lib/courier/models/device_set.rb', line 44
|
Instance Attribute Details
#archived_at ⇒ String?
ISO-8601 timestamp of when the set was archived. Present only on the archive response, which is the one place the state is observable.
42 |
# File 'lib/courier/models/device_set.rb', line 42 optional :archived_at, String |
#created_at ⇒ String
ISO-8601 timestamp of when the set was created.
17 |
# File 'lib/courier/models/device_set.rb', line 17 required :created_at, String |
#device_ids ⇒ Array<String>
The devices in this set, by PreviewDevice.id.
23 |
# File 'lib/courier/models/device_set.rb', line 23 required :device_ids, Courier::Internal::Type::ArrayOf[String] |
#id ⇒ String
Unique identifier for the device set.
11 |
# File 'lib/courier/models/device_set.rb', line 11 required :id, String |
#name ⇒ String
Human-readable name.
29 |
# File 'lib/courier/models/device_set.rb', line 29 required :name, String |
#updated_at ⇒ String
ISO-8601 timestamp of when the set was last written.
35 |
# File 'lib/courier/models/device_set.rb', line 35 required :updated_at, String |
Instance Method Details
#to_hash ⇒ {
37 |
# File 'sig/courier/models/device_set.rbs', line 37
def to_hash: -> {
|