Class: Tana::Client

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

Overview

The primary interface for making API requests.

Instance Method Summary collapse

Constructor Details

#initialize(endpoint: Endpoints::Add::Action.new) {|configuration| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (configuration)


8
9
10
11
12
# File 'lib/tana/client.rb', line 8

def initialize(endpoint: Endpoints::Add::Action.new, **)
  @endpoint = endpoint
  super(**)
  yield configuration if block_given?
end

Instance Method Details

#addObject



14
# File 'lib/tana/client.rb', line 14

def add(...) = endpoint.call(...)