Class: Moonbase::Models::CallUpsertParams::Participant
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::CallUpsertParams::Participant
- Defined in:
- lib/moonbase/models/call_upsert_params.rb
Defined Under Namespace
Modules: Role
Instance Attribute Summary collapse
-
#phone ⇒ String
The E.164 formatted phone number of the participant.
-
#role ⇒ Symbol, Moonbase::Models::CallUpsertParams::Participant::Role
The role of the participant in the call.
Instance Method Summary collapse
-
#initialize(phone:, role:) ⇒ Object
constructor
Parameters for creating a ‘Participant` object.
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(phone:, role:) ⇒ Object
Parameters for creating a ‘Participant` object.
|
|
# File 'lib/moonbase/models/call_upsert_params.rb', line 137
|
Instance Attribute Details
#phone ⇒ String
The E.164 formatted phone number of the participant.
129 |
# File 'lib/moonbase/models/call_upsert_params.rb', line 129 required :phone, String |
#role ⇒ Symbol, Moonbase::Models::CallUpsertParams::Participant::Role
The role of the participant in the call. Can be ‘caller`, `callee`, or `other`.
135 |
# File 'lib/moonbase/models/call_upsert_params.rb', line 135 required :role, enum: -> { Moonbase::CallUpsertParams::Participant::Role } |