Module: Fathom
- Defined in:
- lib/fathom.rb,
lib/fathom/client.rb,
lib/fathom/errors.rb,
lib/fathom/version.rb,
lib/fathom/resource.rb,
lib/fathom/rate_limiter.rb,
lib/fathom/resources/team.rb,
lib/fathom/resources/meeting.rb,
lib/fathom/resources/webhook.rb,
lib/fathom/resources/recording.rb,
lib/fathom/resources/team_member.rb
Defined Under Namespace
Classes: AuthenticationError, BadRequestError, Client, Error, ForbiddenError, Meeting, NotFoundError, RateLimitError, RateLimiter, Recording, Resource, ServerError, Team, TeamMember, Webhook
Constant Summary
collapse
- VERSION =
"1.0.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.api_key ⇒ Object
26
27
28
|
# File 'lib/fathom.rb', line 26
def api_key
@api_key || raise(Error, "Fathom.api_key is not configured")
end
|
.auto_retry ⇒ Object
30
|
# File 'lib/fathom.rb', line 30
def auto_retry = @auto_retry.nil? || @auto_retry
|
.debug ⇒ Object
34
|
# File 'lib/fathom.rb', line 34
def debug = @debug || false
|
.debug_http ⇒ Object
36
|
# File 'lib/fathom.rb', line 36
def debug_http = @debug_http || false
|
.max_retries ⇒ Object
32
|
# File 'lib/fathom.rb', line 32
def max_retries = @max_retries || 3
|
Class Method Details
22
23
24
|
# File 'lib/fathom.rb', line 22
def configure
yield self
end
|
.log(message) ⇒ Object
46
47
48
49
50
|
# File 'lib/fathom.rb', line 46
def log(message)
return unless debug
puts "[Fathom] #{message}"
end
|
.log_http(message) ⇒ Object
52
53
54
55
56
|
# File 'lib/fathom.rb', line 52
def log_http(message)
return unless debug_http
puts "[Fathom HTTP] #{message}"
end
|
.reset! ⇒ Object
38
39
40
41
42
43
44
|
# File 'lib/fathom.rb', line 38
def reset!
@api_key = nil
@auto_retry = true
@max_retries = 3
@debug = false
@debug_http = false
end
|