Module: Shrine::Plugins::Transloadit::ClassMethods

Defined in:
lib/shrine/plugins/transloadit.rb

Instance Method Summary collapse

Instance Method Details

#transloaditObject

Creates a new Transloadit client, so that the expiration timestamp is refreshed on new processing requests.



120
121
122
123
124
125
# File 'lib/shrine/plugins/transloadit.rb', line 120

def transloadit
  ::Transloadit.new(
    key:    opts[:transloadit_auth_key],
    secret: opts[:transloadit_auth_secret],
  )
end