Sha256: ee85ab95e1c73c20dcbdb6974191e7d306cdc30dd7154af3692dcf7954e2206f
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module Tana # The primary interface for making API requests. class Client include Dependencies[: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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tana-0.15.0 | lib/tana/client.rb |
tana-0.14.0 | lib/tana/client.rb |