Class: Moonbase::Models::CallParticipant

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moonbase/models/call_participant.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(id:, phone:, role:, organization: nil, person: nil, type: :call_participant) ⇒ Object

Some parameter documentations has been truncated, see Moonbase::Models::CallParticipant for more details.

Represents a participant in a call.

Parameters:

  • id (String)

    Unique identifier for the object.

  • phone (String)

    The E.164 formatted phone number of the participant.

  • role (Symbol, Moonbase::Models::CallParticipant::Role)

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

  • organization (Moonbase::Models::ItemPointer) (defaults to: nil)

    A reference to an ‘Item` within a specific `Collection`, providing the context n

  • person (Moonbase::Models::ItemPointer) (defaults to: nil)

    A reference to an ‘Item` within a specific `Collection`, providing the context n

  • type (Symbol, :call_participant) (defaults to: :call_participant)

    String representing the object’s type. Always ‘call_participant` for this object



# File 'lib/moonbase/models/call_participant.rb', line 45

Instance Attribute Details

#idString

Unique identifier for the object.

Returns:

  • (String)


10
# File 'lib/moonbase/models/call_participant.rb', line 10

required :id, String

#organizationMoonbase::Models::ItemPointer?

A reference to an ‘Item` within a specific `Collection`, providing the context needed to locate the item.



36
# File 'lib/moonbase/models/call_participant.rb', line 36

optional :organization, -> { Moonbase::ItemPointer }

#personMoonbase::Models::ItemPointer?

A reference to an ‘Item` within a specific `Collection`, providing the context needed to locate the item.



43
# File 'lib/moonbase/models/call_participant.rb', line 43

optional :person, -> { Moonbase::ItemPointer }

#phoneString

The E.164 formatted phone number of the participant.

Returns:

  • (String)


16
# File 'lib/moonbase/models/call_participant.rb', line 16

required :phone, String

#roleSymbol, Moonbase::Models::CallParticipant::Role

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



22
# File 'lib/moonbase/models/call_participant.rb', line 22

required :role, enum: -> { Moonbase::CallParticipant::Role }

#typeSymbol, :call_participant

String representing the object’s type. Always ‘call_participant` for this object.

Returns:

  • (Symbol, :call_participant)


29
# File 'lib/moonbase/models/call_participant.rb', line 29

required :type, const: :call_participant