Class: Plivo::Resources::Recording
- Inherits:
-
Base::Resource
- Object
- Base::Resource
- Plivo::Resources::Recording
- Defined in:
- lib/plivo/resources/recordings.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from Base::Resource
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(client, options = nil) ⇒ Recording
constructor
A new instance of Recording.
- #to_s ⇒ Object
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, = 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 |