Class: Courier::Models::RoutingStrategySummary

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/routing_strategy_summary.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:, created:, creator:, name:, description: nil, tags: nil, updated: nil, updater: nil) ⇒ Object

Routing strategy metadata returned in list responses. Does not include routing/channels/providers content.

Parameters:

  • id (String)

    The routing strategy ID (rs_ prefix).

  • created (Integer)

    Epoch milliseconds when the strategy was created.

  • creator (String)

    User ID of the creator.

  • name (String)

    Human-readable name.

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

    Description of the routing strategy.

  • tags (Array<String>, nil) (defaults to: nil)

    Tags for categorization.

  • updated (Integer, nil) (defaults to: nil)

    Epoch milliseconds of last update.

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

    User ID of the last updater.



# File 'lib/courier/models/routing_strategy_summary.rb', line 54

Instance Attribute Details

#createdInteger

Epoch milliseconds when the strategy was created.

Returns:

  • (Integer)


16
# File 'lib/courier/models/routing_strategy_summary.rb', line 16

required :created, Integer

#creatorString

User ID of the creator.

Returns:

  • (String)


22
# File 'lib/courier/models/routing_strategy_summary.rb', line 22

required :creator, String

#descriptionString?

Description of the routing strategy.

Returns:

  • (String, nil)


34
# File 'lib/courier/models/routing_strategy_summary.rb', line 34

optional :description, String, nil?: true

#idString

The routing strategy ID (rs_ prefix).

Returns:

  • (String)


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

required :id, String

#nameString

Human-readable name.

Returns:

  • (String)


28
# File 'lib/courier/models/routing_strategy_summary.rb', line 28

required :name, String

#tagsArray<String>?

Tags for categorization.

Returns:

  • (Array<String>, nil)


40
# File 'lib/courier/models/routing_strategy_summary.rb', line 40

optional :tags, Courier::Internal::Type::ArrayOf[String], nil?: true

#updatedInteger?

Epoch milliseconds of last update.

Returns:

  • (Integer, nil)


46
# File 'lib/courier/models/routing_strategy_summary.rb', line 46

optional :updated, Integer, nil?: true

#updaterString?

User ID of the last updater.

Returns:

  • (String, nil)


52
# File 'lib/courier/models/routing_strategy_summary.rb', line 52

optional :updater, String, nil?: true