Class: S3Bucket
- Inherits:
-
Object
- Object
- S3Bucket
- Defined in:
- lib/tigre-client/s3_bucket.rb
Instance Method Summary collapse
-
#initialize(bucket) ⇒ S3Bucket
constructor
A new instance of S3Bucket.
- #send_file(file, file_name = nil) ⇒ Object
Constructor Details
Instance Method Details
#send_file(file, file_name = nil) ⇒ Object
8 9 10 11 |
# File 'lib/tigre-client/s3_bucket.rb', line 8 def send_file(file, file_name=nil) file_name ||= file[:filename] @bucket.put(file_name, IO.binread(file[:tempfile])) end |