Class: Tessa::Upload

Inherits:
Object
  • Object
show all
Extended by:
ResponseFactory
Defined in:
lib/tessa/upload.rb

Class Method Summary collapse

Methods included from ResponseFactory

new_from_response

Class Method Details

.create(connection: Tessa.config.connection, strategy: Tessa.config.strategy, **options) ⇒ Object



10
11
12
13
14
# File 'lib/tessa/upload.rb', line 10

def self.create(connection: Tessa.config.connection,
                strategy: Tessa.config.strategy,
                **options)
  new_from_response connection.post('/uploads', options.merge(strategy: strategy))
end