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

GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, is_one_among_string_url?, multi_valid_param?, raise_invalid_request, valid_account?, valid_date_format?, valid_mainaccount?, valid_multiple_destination_integers?, valid_multiple_destination_nos?, valid_param?, valid_range?, valid_signature?, valid_signatureV3?, valid_subaccount?, valid_url?

Constructor Details

#initialize(client, options = nil) ⇒ Recording

Returns a new instance of Recording.



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

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

Instance Method Details

#deleteObject



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

def delete
  perform_delete
end

#to_sObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/plivo/resources/recordings.rb', line 16

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,
    from_number: @from_number,
    to_number: @to_number,
    mpc_name: @mpc_name,
    conference_uuid: @conference_uuid,
    mpc_uuid: @mpc_uuid
  }.to_s
end