module AwsExtensions::S3::BucketCors
Public Instance Methods
rules()
click to toggle source
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
# File lib/aws_extensions/s3/BucketCors.rb, line 10 def rules cors_rules rescue Aws::S3::Errors::NoSuchCORSConfiguration [] end