Class: Aws::S3::ObjectSummary

Inherits:
Object
  • Object
show all
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/services/s3/object_summary.rb

Instance Method Summary collapse

Instance Method Details

#upload_file(source, options = {}) ⇒ Boolean

Returns true when the object is uploaded without any errors.

Parameters:

  • source (String, Pathname, File, Tempfile)

    A file or path to a file on the local file system that should be uploaded to this object. If you pass an open file object, then it is your responsibility to close the file object once the upload completes.

  • options (Hash) (defaults to: {})

    a customizable set of options

Returns:

  • (Boolean)

    Returns true when the object is uploaded without any errors.

See Also:


11
12
13
# File 'aws-sdk-resources/lib/aws-sdk-resources/services/s3/object_summary.rb', line 11

def upload_file(source, options = {})
  object.upload_file(source, options)
end