Sha256: be53597f5a94d48b4d230bf45cf4fea35252a17923f80fde566fe1cb73418819
Contents?: true
Size: 673 Bytes
Versions: 5
Compression:
Stored size: 673 Bytes
Contents
module MagicWrite class Completions def initialize(access_token: nil) MagicWrite.configuration.access_token = access_token if access_token end def execute(parameters: {}) MagicWrite::Client.json_post(path: '/completions', parameters: parameters) end def retrieve(id:, parameters: {}) MagicWrite::Client.get(path: "/completions/#{id}", parameters: parameters) end def create(id:, parameters: {}) MagicWrite::Client.json_post(path: "/completions/#{id}", parameters: parameters) end def delete(id:, completion_id:) MagicWrite::Client.delete(path: "/completions/#{id}/#{completion_id}") end end end
Version data entries
5 entries across 5 versions & 1 rubygems