Class: Knockapi::Models::InlineObjectRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/inline_object_request.rb

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(id:, collection:, channel_data: nil, created_at: nil, name: nil, preferences: nil) ⇒ Object

Some parameter documentations has been truncated, see Knockapi::Models::InlineObjectRequest for more details.

A custom [Object](/concepts/objects) entity which belongs to a collection.

Parameters:



# File 'lib/knockapi/models/inline_object_request.rb', line 50


Instance Attribute Details

#collectionString

The collection this object belongs to.

Returns:

  • (String)


16
# File 'lib/knockapi/models/inline_object_request.rb', line 16

required :collection, String

#created_atTime?

Timestamp when the resource was created.

Returns:

  • (Time, nil)


32
# File 'lib/knockapi/models/inline_object_request.rb', line 32

optional :created_at, Time, nil?: true

#idString

Unique identifier for the object.

Returns:

  • (String)


10
# File 'lib/knockapi/models/inline_object_request.rb', line 10

required :id, String

#nameString?

An optional name for the object.

Returns:

  • (String, nil)


38
# File 'lib/knockapi/models/inline_object_request.rb', line 38

optional :name, String, nil?: true

#preferencesHash{Symbol=>Knockapi::Models::Recipients::PreferenceSetRequest}?

Inline set preferences for a recipient, where the key is the preference set id. Preferences that are set inline will be merged into any existing preferences rather than replacing them.



46
47
48
# File 'lib/knockapi/models/inline_object_request.rb', line 46

optional :preferences,
-> { Knockapi::Internal::Type::HashOf[Knockapi::Recipients::PreferenceSetRequest] },
nil?: true