Class: Dyte::RecordingsResource
- Defined in:
- lib/dyte/resources/recordings.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #fetch(recording_id:) ⇒ Object
-
#list(**params) ⇒ Object
Returns all recordings for an organization.
Methods inherited from Resource
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 |