Sha256: 3a2c37c25c8637367314bdc2a6286ca9726134dbfa4409790f36010fd3e4e481
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true module Hachi module Clients class Artifact < Base # # Create an artifact # # @param [String] case_id Artifact ID # @param [Hash] payload # # @return [Hash] # def create(case_id, **payload) post("/api/case/#{case_id}/artifact", json: payload) { |json| json } end # # Get an artifact # # @param [String] id Artifact ID # # @return [Hash] # def get_by_id(id) get("/api/case/artifact/#{id}") { |json| json } end # # Delete an artifact # # @param [String] id Artifact ID # # @return [String] # def delete_by_id(id) delete("/api/case/artifact/#{id}") { |json| json } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hachi-2.0.0 | lib/hachi/clients/artifact.rb |