Module: AwsExtensions::S3::BucketCors
- Defined in:
- lib/aws_extensions/s3/BucketCors.rb
Instance Method Summary collapse
-
#rules ⇒ Object
Public: Method that will return the bucket cors.
Instance Method Details
#rules ⇒ Object
Public: Method that will return the bucket cors. We have this method because if there are no CORS rules, an exception is thrown.
Returns an array of Aws::S3::CORSRule
10 11 12 13 14 |
# File 'lib/aws_extensions/s3/BucketCors.rb', line 10 def rules cors_rules rescue Aws::S3::Errors::NoSuchCORSConfiguration [] end |