Class: Aws::S3::ObjectCopier Private

Inherits:
Object
  • Object
show all
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

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.

Parameters:



11
12
13
14
# File 'lib/aws-sdk-s3/object_copier.rb', line 11

def initialize(object, options = {})
  @object = object
  @options = 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, options = {})
  copy_object(source, @object, merge_options(source, options))
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, options = {})
  copy_object(@object, target, merge_options(target, options))
end