class Swa::S3::Bucket
Public Instance Methods
delete()
click to toggle source
# File lib/swa/s3/bucket.rb, line 35 def delete bucket.delete end
id()
click to toggle source
# File lib/swa/s3/bucket.rb, line 9 def id name end
objects(options = {})
click to toggle source
# File lib/swa/s3/bucket.rb, line 31 def objects(options = {}) Swa::S3::Object.list(aws_resource.objects(options)) end
policy_data()
click to toggle source
# File lib/swa/s3/bucket.rb, line 27 def policy_data MultiJson.load(policy_json) end
policy_json()
click to toggle source
# File lib/swa/s3/bucket.rb, line 23 def policy_json bucket.policy.policy.read end
summary()
click to toggle source
# File lib/swa/s3/bucket.rb, line 13 def summary name end
uri()
click to toggle source
# File lib/swa/s3/bucket.rb, line 19 def uri "s3://#{bucket.name}" end