Class: Plivo::Resources::Recording
Constant Summary
Constants included
from Utils
Utils::TYPE_WHITELIST
Instance Attribute Summary
#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
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
#delete ⇒ Object
11
12
13
|
# File 'lib/plivo/resources/recordings.rb', line 11
def delete
perform_delete
end
|
#to_s ⇒ Object
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
|