Class: SpreeCmCommissioner::Media::SignedUrlGenerator

Inherits:
Signer
  • Object
show all
Defined in:
app/interactors/spree_cm_commissioner/media/signed_url_generator.rb

Instance Method Summary collapse

Methods inherited from Signer

#distribution_domain, #expiration_time, #key_pair_id, #private_key, #signer, #url

Instance Method Details

#callObject

s3_object_key: medias/dash/cohesion/cohesion.mpd



7
8
9
# File 'app/interactors/spree_cm_commissioner/media/signed_url_generator.rb', line 7

def call
  sign
end

#signObject



11
12
13
# File 'app/interactors/spree_cm_commissioner/media/signed_url_generator.rb', line 11

def sign
  context.result = signer.signed_url(url, expires: expiration_time)
end