Class: Trycourier::Models::SendMessageParams::Message::Expiry
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::SendMessageParams::Message::Expiry
- Defined in:
- lib/trycourier/models/send_message_params.rb
Overview
Defined Under Namespace
Modules: ExpiresIn
Instance Attribute Summary collapse
-
#expires_at ⇒ String?
Epoch or ISO8601 timestamp with timezone.
-
#expires_in ⇒ String, Integer
Duration in ms or ISO8601 duration (e.g. P1DT4H).
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(expires_in: , expires_at: nil) ⇒ Object
|
|
# File 'lib/trycourier/models/send_message_params.rb', line 293
|
Instance Attribute Details
#expires_at ⇒ String?
Epoch or ISO8601 timestamp with timezone.
291 |
# File 'lib/trycourier/models/send_message_params.rb', line 291 optional :expires_at, String, nil?: true |
#expires_in ⇒ String, Integer
Duration in ms or ISO8601 duration (e.g. P1DT4H).
285 |
# File 'lib/trycourier/models/send_message_params.rb', line 285 required :expires_in, union: -> { Trycourier::SendMessageParams::Message::Expiry::ExpiresIn } |