Class: Fathom::Client
- Inherits:
-
Object
- Object
- Fathom::Client
- Defined in:
- lib/fathom/client.rb
Constant Summary collapse
- BASE_URL =
"https://api.fathom.ai/external/v1"
Instance Attribute Summary collapse
-
#rate_limiter ⇒ Object
readonly
Returns the value of attribute rate_limiter.
Instance Method Summary collapse
- #delete(path) ⇒ Object
- #get(path, params = {}) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #patch(path, body = {}) ⇒ Object
- #post(path, body = {}) ⇒ Object
- #put(path, body = {}) ⇒ Object
Constructor Details
#initialize ⇒ Client
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_limiter ⇒ Object (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:) |