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.
9 10 11 12 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 9 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.
14 15 16 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 14 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.
18 19 20 |
# File 'lib/aws-sdk-s3/object_copier.rb', line 18 def copy_to(target, = {}) copy_object(@object, target, (target, )) end |