Sha256: e79cfee4e3d68eeab1f5df44c874a648397d82888b757d9fc2a0bab29b44f788
Contents?: true
Size: 629 Bytes
Versions: 16
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true require_relative "auth" require_relative "options" module Seam module Http module Options def self.parse_options(api_key: nil, personal_access_token: nil, workspace_id: nil, endpoint: nil) api_key ||= ENV["SEAM_API_KEY"] if personal_access_token.nil? auth_headers = Http::Auth.get_auth_headers( api_key: api_key, personal_access_token: personal_access_token, workspace_id: workspace_id ) endpoint = Http::Options.get_endpoint(endpoint) {auth_headers: auth_headers, endpoint: endpoint} end end end end
Version data entries
16 entries across 16 versions & 1 rubygems