ruby/example_code/s3/tests/test_s3_get_csaes_decrypt_item.rb
# Captures the data (metadata and body) put to an Amazon S3 object.
Captures the data (metadata and body) put to an Amazon S3 object.
Captures the data ( metadata and body ) put to an Amazon S3 object .
def stub_put(s3_client)
    data = {}
    s3_client.stub_responses(:put_object, lambda { |context|
      data[:metadata] = context.params[:metadata]
      data[:enc_body] = context.params[:body].read
      {}
    })
    data
  end
def stub_put ( s3_client ) data = { } s3_client . stub_responses ( :put_object , lambda { | context | data [ :metadata ] = context . params [ :metadata ] data [ :enc_body ] = context . params [ :body ] . read { } } ) data end
Captures the data (metadata and body) put to an Amazon S3 object.
Captures the data ( metadata and body ) put to an Amazon S3 object .
s3_client