Class: Aws::S3::ObjectCopier Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-resources/services/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:



9
10
11
12
# File 'lib/aws-sdk-resources/services/s3/object_copier.rb', line 9

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.



14
15
16
# File 'lib/aws-sdk-resources/services/s3/object_copier.rb', line 14

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.



18
19
20
# File 'lib/aws-sdk-resources/services/s3/object_copier.rb', line 18

def copy_to(target, options = {})
  copy_object(@object, target, merge_options(target, options))
end