Class: Moonbase::Models::CallCreateParams::Participant

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moonbase/models/call_create_params.rb

Defined Under Namespace

Modules: Role

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(phone:, role:) ⇒ Object

Parameters for creating a ‘Participant` object.

Parameters:



# File 'lib/moonbase/models/call_create_params.rb', line 133

Instance Attribute Details

#phoneString

The E.164 formatted phone number of the participant.

Returns:

  • (String)


125
# File 'lib/moonbase/models/call_create_params.rb', line 125

required :phone, String

#roleSymbol, Moonbase::Models::CallCreateParams::Participant::Role

The role of the participant in the call. Can be ‘caller`, `callee`, or `other`.



131
# File 'lib/moonbase/models/call_create_params.rb', line 131

required :role, enum: -> { Moonbase::CallCreateParams::Participant::Role }