Class: Fathom::Meeting

Inherits:
Resource show all
Defined in:
lib/fathom/resources/meeting.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #rate_limit_info

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#[], #[]=, all, client, create, #delete, #id, #initialize, #inspect, #method_missing, #reload, resource_name, #respond_to_missing?, retrieve, search, #to_h, #to_json, #update

Constructor Details

This class inherits a constructor from Fathom::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fathom::Resource

Class Method Details

.resource_pathObject



5
# File 'lib/fathom/resources/meeting.rb', line 5

def self.resource_path = "meetings"

Instance Method Details

#action_itemsObject

Get action items for the meeting



39
# File 'lib/fathom/resources/meeting.rb', line 39

def action_items = self["action_items"] || []

#fetch_summary(destination_url: nil) ⇒ Object

Fetch the recording summary from the API



19
20
21
22
23
# File 'lib/fathom/resources/meeting.rb', line 19

def fetch_summary(destination_url: nil)
  return nil unless recording_id

  Recording.get_summary(recording_id, destination_url:)
end

#fetch_transcript(destination_url: nil) ⇒ Object

Fetch the recording transcript from the API



26
27
28
29
30
# File 'lib/fathom/resources/meeting.rb', line 26

def fetch_transcript(destination_url: nil)
  return nil unless recording_id

  Recording.get_transcript(recording_id, destination_url:)
end

#participantsObject

Get meeting participants (calendar invitees)



36
# File 'lib/fathom/resources/meeting.rb', line 36

def participants = self["calendar_invitees"] || []

#recording?Boolean

Check if the meeting has a recording

Returns:

  • (Boolean)


33
# File 'lib/fathom/resources/meeting.rb', line 33

def recording? = !recording_id.nil?

#recording_idObject

Get the recording ID for this meeting



8
# File 'lib/fathom/resources/meeting.rb', line 8

def recording_id = self["recording_id"]

#summaryObject

Get the summary for this meeting (use include_summary=true when listing) Returns the default_summary object or nil



12
# File 'lib/fathom/resources/meeting.rb', line 12

def summary = self["default_summary"]

#transcriptObject

Get the transcript for this meeting (use include_transcript=true when listing) Returns array of transcript segments or nil



16
# File 'lib/fathom/resources/meeting.rb', line 16

def transcript = self["transcript"]