Class: Plivo::Resources::Recording

Inherits:
Base::Resource show all
Defined in:
lib/plivo/resources/recordings.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary

Attributes inherited from Base::Resource

#id

Instance Method Summary collapse

Methods included from Utils

expected_type?, expected_value?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_subaccount?

Constructor Details

#initialize(client, options = nil) ⇒ Recording

Returns a new instance of Recording.



5
6
7
8
9
# File 'lib/plivo/resources/recordings.rb', line 5

def initialize(client, options = nil)
  @_name = 'Recording'
  @_identifier_string = 'recording_id'
  super
end

Instance Method Details

#deleteObject



11
12
13
# File 'lib/plivo/resources/recordings.rb', line 11

def delete
  perform_delete
end

#to_sObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/plivo/resources/recordings.rb', line 15

def to_s
  {
    add_time: @add_time,
    api_id: @api_id,
    call_uuid: @call_uuid,
    conference_name: @conference_name,
    recording_duration_ms: @recording_duration_ms,
    recording_end_ms: @recording_end_ms,
    recording_format: @recording_format,
    recording_id: @recording_id,
    recording_start_ms: @recording_start_ms,
    recording_type: @recording_type,
    recording_url: @recording_url,
    resource_uri: @resource_uri
  }.to_s
end