Sha256: 74965b3d32f8db3b8d1f98432bdd26094a96509054596c241a540d49a98797e3
Contents?: true
Size: 467 Bytes
Versions: 4
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true require 'agave/api_client' require 'agave/upload/file' require 'agave/upload/image' module Agave module Site class Client include ApiClient json_schema 'site-api' def upload_file(path_or_url) file = Upload::File.new(self, path_or_url) file.upload end def upload_image(path_or_url) file = Upload::Image.new(self, path_or_url) file.upload end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
agave-client-0.1.3 | lib/agave/site/client.rb |
agave-client-0.1.2 | lib/agave/site/client.rb |
agave-client-0.1.1 | lib/agave/site/client.rb |
agave-client-0.1.0 | lib/agave/site/client.rb |