Sha256: 5c30ea40b4a872444e91c8ab94ae845c639303a551e042ef0285cccab3079ed4
Contents?: true
Size: 316 Bytes
Versions: 22
Compression:
Stored size: 316 Bytes
Contents
# frozen_string_literal: true module DiscourseApi module API module Uploads def upload_file(args) args = API.params(args) .optional(:file, :url, :user_id) .default(type: 'composer', synchronous: true) .to_h post('/uploads', args) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems