Sha256: b9816d04a1774a78ed82a4a8c6169a82b2cffc5d7f6d6300cf3975bdaedd9dbd

Contents?: true

Size: 985 Bytes

Versions: 1

Compression:

Stored size: 985 Bytes

Contents

module ChalkRuby
  class Client
    @config: Config
    @token: Token?
    @transporter: Transport::Transport

    def self.create: -> Client

    def self.create_with_config: -> Client

    def get_token: -> Token

    def query: (
        ::Hash[Symbol|String, untyped] input,
        [String] output,
        Time? now,
        ?::Hash[String, String] staleness
      ) -> Hash[Symbol, untyped]

    private

    def get_authenticated_headers: -> Hash[Symbol, String | nil]
    def get_unauthenticated_headers: -> Hash[Symbol, String | nil]

    def query_server_host: -> String

    def query_server_request: (
        Symbol method,
        String path,
        Hash[Symbol, String] body,
        Hash[String, String] headers
      ) -> Hash[Symbol, untyped]

    def api_server_request: (
        Symbol method,
        String path,
        Hash[Symbol, String] body,
        Hash[String, String] headers
      ) -> Hash[Symbol, untyped]

    def valid_token: -> Token
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chalk_ruby-0.1.0 sig/chalk_ruby/client.rbs