Class: Dyte::RecordingsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/dyte/resources/recordings.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Dyte::Resource

Instance Method Details

#fetch(recording_id:) ⇒ Object



10
11
12
# File 'lib/dyte/resources/recordings.rb', line 10

def fetch(recording_id:)
  Recording.new get_request("recordings/#{recording_id}").body.dig("data")
end

#list(**params) ⇒ Object

Returns all recordings for an organization. If the meeting_id parameter is passed, returns all recordings for the given meeting ID.



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

def list(**params)
  response = get_request("recordings", params: params)
  Collection.from_response(response, type: Recording)
end