Sha256: 52fc3c4d31f828222833a45c00ac4018f4aad8a2e4746dc68d9941c8c87f2c3b

Contents?: true

Size: 388 Bytes

Versions: 13

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Tana
  # The primary interface for making API requests.
  class Client
    include Import[:configuration]

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

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

    private

    attr_reader :endpoint
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tana-0.13.0 lib/tana/client.rb
tana-0.12.0 lib/tana/client.rb
tana-0.11.0 lib/tana/client.rb
tana-0.10.0 lib/tana/client.rb
tana-0.9.0 lib/tana/client.rb
tana-0.8.0 lib/tana/client.rb
tana-0.7.0 lib/tana/client.rb
tana-0.6.0 lib/tana/client.rb
tana-0.4.0 lib/tana/client.rb
tana-0.3.0 lib/tana/client.rb
tana-0.2.0 lib/tana/client.rb
tana-0.1.0 lib/tana/client.rb
tana-0.0.0 lib/tana/client.rb