Class: S3DataPacker::Sources::S3Bucket
- Inherits:
-
Bucket
- Object
- Bucket
- S3DataPacker::Sources::S3Bucket
show all
- Defined in:
- lib/s3_data_packer/sources/s3_bucket.rb
Instance Attribute Summary
Attributes inherited from Bucket
#bucket_name, #path
Instance Method Summary
collapse
Methods inherited from Bucket
#credentials, #download, #each_key, #exist?, #initialize, #logger, #region, #upload
Instance Method Details
#each(&block) ⇒ Object
9
10
11
12
13
|
# File 'lib/s3_data_packer/sources/s3_bucket.rb', line 9
def each(&block)
each_key do |key|
yield key
end
end
|
#fetch(key) ⇒ Object
15
16
17
|
# File 'lib/s3_data_packer/sources/s3_bucket.rb', line 15
def fetch(key)
download(key)
end
|
5
6
7
|
# File 'lib/s3_data_packer/sources/s3_bucket.rb', line 5
def name
"s3://#{bucket_name}/#{path}"
end
|