Class: Telnyx::Models::EventNode

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/event_node.rb

Defined Under Namespace

Classes: Cost, Links, Relationship

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(records:, self_:) ⇒ Object

Parameters:

  • records (String)

    Link to the underlying detail records.

  • self_ (String)

    Link to this session analysis node.



# File 'lib/telnyx/models/event_node.rb', line 52

Instance Attribute Details

#childrenArray<Telnyx::Models::EventNode>

Child events in the session tree.

Returns:



16
# File 'lib/telnyx/models/event_node.rb', line 16

required :children, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::EventNode] }

#costTelnyx::Models::EventNode::Cost



21
# File 'lib/telnyx/models/event_node.rb', line 21

required :cost, -> { Telnyx::EventNode::Cost }

#event_nameString

Name of the event type.

Returns:

  • (String)


27
# File 'lib/telnyx/models/event_node.rb', line 27

required :event_name, String

#idString

Event identifier.

Returns:

  • (String)


10
# File 'lib/telnyx/models/event_node.rb', line 10

required :id, String


32
# File 'lib/telnyx/models/event_node.rb', line 32

required :links, -> { Telnyx::EventNode::Links }

#productString

Product that generated this event.

Returns:

  • (String)


38
# File 'lib/telnyx/models/event_node.rb', line 38

required :product, String

#recordHash{Symbol=>Object}

The underlying detail record data. Contents vary by record type.

Returns:

  • (Hash{Symbol=>Object})


44
# File 'lib/telnyx/models/event_node.rb', line 44

required :record, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#relationshipTelnyx::Models::EventNode::Relationship?

Relationship to the parent node, null for root.



50
# File 'lib/telnyx/models/event_node.rb', line 50

optional :relationship, -> { Telnyx::EventNode::Relationship }, nil?: true