Class: Courier::Models::RoutingStrategySummary
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::RoutingStrategySummary
- Defined in:
- lib/courier/models/routing_strategy_summary.rb,
sig/courier/models/routing_strategy_summary.rbs
Instance Attribute Summary collapse
-
#created ⇒ Integer
Epoch milliseconds when the strategy was created.
-
#creator ⇒ String
User ID of the creator.
-
#description ⇒ String?
Description of the routing strategy.
-
#id ⇒ String
The routing strategy ID (rs_ prefix).
-
#name ⇒ String
Human-readable name.
-
#tags ⇒ Array<String>?
Tags for categorization.
-
#updated ⇒ Integer?
Epoch milliseconds of last update.
-
#updater ⇒ String?
User ID of the last updater.
Instance Method Summary collapse
-
#initialize(id:, created:, creator:, name:, description: nil, tags: nil, updated: nil, updater: nil) ⇒ RoutingStrategySummary
constructor
Routing strategy metadata returned in list responses.
- #to_hash ⇒ { id: String, created: Integer, creator: String, name: String, description: String?, tags: ::Array[String]?, updated: Integer?, updater: String? }
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) ⇒ RoutingStrategySummary
Routing strategy metadata returned in list responses. Does not include routing/channels/providers content.
|
|
# File 'lib/courier/models/routing_strategy_summary.rb', line 54
|
Instance Attribute Details
#created ⇒ Integer
Epoch milliseconds when the strategy was created.
16 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 16 required :created, Integer |
#creator ⇒ String
User ID of the creator.
22 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 22 required :creator, String |
#description ⇒ String?
Description of the routing strategy.
34 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 34 optional :description, String, nil?: true |
#id ⇒ String
The routing strategy ID (rs_ prefix).
10 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 10 required :id, String |
#name ⇒ String
Human-readable name.
28 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 28 required :name, String |
#tags ⇒ Array<String>?
Tags for categorization.
40 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 40 optional :tags, Courier::Internal::Type::ArrayOf[String], nil?: true |
#updated ⇒ Integer?
Epoch milliseconds of last update.
46 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 46 optional :updated, Integer, nil?: true |
#updater ⇒ String?
User ID of the last updater.
52 |
# File 'lib/courier/models/routing_strategy_summary.rb', line 52 optional :updater, String, nil?: true |
Instance Method Details
#to_hash ⇒ { id: String, created: Integer, creator: String, name: String, description: String?, tags: ::Array[String]?, updated: Integer?, updater: String? }
43 44 45 46 47 48 49 50 51 52 |
# File 'sig/courier/models/routing_strategy_summary.rbs', line 43
def to_hash: -> {
id: String,
created: Integer,
creator: String,
name: String,
description: String?,
tags: ::Array[String]?,
updated: Integer?,
updater: String?
}
|