Class: Agave::Site::Client

Inherits:
Object
  • Object
show all
Includes:
ApiClient
Defined in:
lib/agave/site/client.rb

Instance Method Summary collapse

Methods included from ApiClient

included, #request

Instance Method Details

#upload_file(path_or_url) ⇒ Object



13
14
15
16
# File 'lib/agave/site/client.rb', line 13

def upload_file(path_or_url)
  file = Upload::File.new(self, path_or_url)
  file.upload
end

#upload_image(path_or_url) ⇒ Object



18
19
20
21
# File 'lib/agave/site/client.rb', line 18

def upload_image(path_or_url)
  file = Upload::Image.new(self, path_or_url)
  file.upload
end