Class: Trycourier::Models::SendMessageParams::Message::Expiry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/send_message_params.rb

Overview

See Also:

Defined Under Namespace

Modules: ExpiresIn

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(expires_in: , expires_at: nil) ⇒ Object

Parameters:

  • expires_in (String, Integer) (defaults to: )

    Duration in ms or ISO8601 duration (e.g. P1DT4H).

  • expires_at (String, nil) (defaults to: nil)

    Epoch or ISO8601 timestamp with timezone.



# File 'lib/trycourier/models/send_message_params.rb', line 293

Instance Attribute Details

#expires_atString?

Epoch or ISO8601 timestamp with timezone.

Returns:

  • (String, nil)


291
# File 'lib/trycourier/models/send_message_params.rb', line 291

optional :expires_at, String, nil?: true

#expires_inString, Integer

Duration in ms or ISO8601 duration (e.g. P1DT4H).

Returns:

  • (String, Integer)


285
# File 'lib/trycourier/models/send_message_params.rb', line 285

required :expires_in, union: -> { Trycourier::SendMessageParams::Message::Expiry::ExpiresIn }