Module: AwsExtensions::S3::BucketTagging

Defined in:
lib/aws_extensions/s3/BucketTagging.rb

Instance Method Summary collapse

Instance Method Details

#safe_tagsObject

Public: Safely get the tag set for the BucketTagging object (ignore the exception that occurs when there aren’t any tags)

Returns the tags or an empty array if there are none



10
11
12
13
14
# File 'lib/aws_extensions/s3/BucketTagging.rb', line 10

def safe_tags
  tag_set
rescue Aws::S3::Errors::NoSuchTagSet
  []
end