Class: Fathom::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/fathom/client.rb

Constant Summary collapse

BASE_URL =
"https://api.fathom.ai/external/v1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



9
10
11
# File 'lib/fathom/client.rb', line 9

def initialize
  @rate_limiter = RateLimiter.new
end

Instance Attribute Details

#rate_limiterObject (readonly)

Returns the value of attribute rate_limiter.



7
8
9
# File 'lib/fathom/client.rb', line 7

def rate_limiter
  @rate_limiter
end

Instance Method Details

#delete(path) ⇒ Object



21
# File 'lib/fathom/client.rb', line 21

def delete(path) = request(:delete, path)

#get(path, params = {}) ⇒ Object



13
# File 'lib/fathom/client.rb', line 13

def get(path, params = {}) = request(:get, path, params:)

#patch(path, body = {}) ⇒ Object



19
# File 'lib/fathom/client.rb', line 19

def patch(path, body = {}) = request(:patch, path, body:)

#post(path, body = {}) ⇒ Object



15
# File 'lib/fathom/client.rb', line 15

def post(path, body = {}) = request(:post, path, body:)

#put(path, body = {}) ⇒ Object



17
# File 'lib/fathom/client.rb', line 17

def put(path, body = {}) = request(:put, path, body:)