Sha256: 1ca28f79e669e48b9817f97639ac1f5bbeb06766ebfbe60c52dfd7b15c0d5c49
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
module MagicWrite class Client extend MagicWrite::HTTP def initialize(access_token: nil, uri_base: nil, request_timeout: nil) MagicWrite.configuration.access_token = access_token if access_token MagicWrite.configuration.uri_base = uri_base if uri_base MagicWrite.configuration.request_timeout = request_timeout if request_timeout end def agents @agents ||= MagicWrite::Agents.new end def companies @companies ||= MagicWrite::Companies.new end def completions @completions ||= MagicWrite::Completions.new end def ingestions @ingestions ||= MagicWrite::Ingestions.new end def session MagicWrite::Client.get(path: '/session') end end end
Version data entries
4 entries across 4 versions & 1 rubygems