Class: GetStream::Generated::Models::CallRecordingReadyEvent

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/call_recording_ready_event.rb

Overview

This event is sent when call recording is ready

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ CallRecordingReadyEvent

Initialize with attributes



32
33
34
35
36
37
38
39
40
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 32

def initialize(attributes = {})
  super(attributes)
  @call_cid = attributes.fetch(:call_cid) { attributes.fetch('call_cid', nil) }
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @egress_id = attributes.fetch(:egress_id) { attributes.fetch('egress_id', nil) }
  @recording_type = attributes.fetch(:recording_type) { attributes.fetch('recording_type', nil) }
  @call_recording = attributes.fetch(:call_recording) { attributes.fetch('call_recording', nil) }
  @type = attributes.fetch(:type) { attributes.fetch('type', "call.recording_ready") }
end

Instance Attribute Details

#call_cid ⇒ String

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 14

def call_cid
  @call_cid
end

#call_recording ⇒ CallRecording

Returns CallRecording represents a recording of a call.

Returns:

  • (CallRecording) —

    CallRecording represents a recording of a call.



26
27
28
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 26

def call_recording
  @call_recording
end

#created_at ⇒ DateTime

Returns:

  • (DateTime)


17
18
19
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 17

def created_at
  @created_at
end

#egress_id ⇒ String

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 20

def egress_id
  @egress_id
end

#recording_type ⇒ RecordingType

Returns The type of recording.

Returns:



23
24
25
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 23

def recording_type
  @recording_type
end

#type ⇒ String

Returns The type of event: "call.recording_ready" in this case.

Returns:

  • (String) —

    The type of event: "call.recording_ready" in this case



29
30
31
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 29

def type
  @type
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/call_recording_ready_event.rb', line 43

def self.json_field_mappings
  {
    call_cid: 'call_cid',
    created_at: 'created_at',
    egress_id: 'egress_id',
    recording_type: 'recording_type',
    call_recording: 'call_recording',
    type: 'type'
  }
end