Module: AWS::S3::Bucket::PolicyProxy
- Defined in:
- lib/aws/s3/bucket.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
Instance Method Summary collapse
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
233 234 235 |
# File 'lib/aws/s3/bucket.rb', line 233 def bucket @bucket end |
Instance Method Details
#change {|_self| ... } ⇒ Object
235 236 237 238 |
# File 'lib/aws/s3/bucket.rb', line 235 def change yield(self) bucket.policy = self end |
#delete ⇒ Object
240 241 242 |
# File 'lib/aws/s3/bucket.rb', line 240 def delete bucket.client.delete_bucket_policy(:bucket_name => bucket.name) end |