Class: Aws::S3::ObjectCopier Private
- Inherits:
-
Object
- Object
- Aws::S3::ObjectCopier
- Defined in:
- lib/aws-sdk-s3/object_copier.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #copy_from(source, options = {}) ⇒ Object private
- #copy_to(target, options = {}) ⇒ Object private
-
#initialize(object, options = {}) ⇒ ObjectCopier
constructor
private
A new instance of ObjectCopier.
Constructor Details
#initialize(object, options = {}) ⇒ ObjectCopier
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ObjectCopier.
11 12 13 14 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 11 def initialize(object, = {}) @object = object @options = .merge(client: @object.client) end |
Instance Method Details
#copy_from(source, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 16 def copy_from(source, = {}) copy_object(source, @object, (source, )) end |
#copy_to(target, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 20 def copy_to(target, = {}) copy_object(@object, target, (target, )) end |