Method: RightAws::S3::Key#public_link
- Defined in:
- lib/s3/right_s3.rb
#public_link ⇒ Object
Return a public link to a key.
key.public_link #=> 'https://s3.amazonaws.com:443/my_awesome_bucket/cool_key'
451 452 453 454 |
# File 'lib/s3/right_s3.rb', line 451 def public_link params = @bucket.s3.interface.params "#{params[:protocol]}://#{params[:server]}:#{params[:port]}/#{full_name('/')}" end |