Class: S3Secure::AbstractBase
- Inherits:
-
Object
- Object
- S3Secure::AbstractBase
- Extended by:
- Memoist
- Includes:
- AwsServices
- Defined in:
- lib/s3_secure/abstract_base.rb
Direct Known Subclasses
S3Secure::AccessLogs::Base, Encryption::Base, Lifecycle::Base, Policy::Base, RemediateAll, Summary, Summary::Items, Versioning::Base
Instance Method Summary collapse
- #buckets ⇒ Object
-
#initialize(options = {}) ⇒ AbstractBase
constructor
A new instance of AbstractBase.
Methods included from S3Secure::AwsServices::S3
#check_bucket!, #new_s3_regional_client, #region, #region_map, #s3, #s3_client
Constructor Details
#initialize(options = {}) ⇒ AbstractBase
Returns a new instance of AbstractBase.
6 7 8 9 |
# File 'lib/s3_secure/abstract_base.rb', line 6 def initialize(={}) = @bucket = [:bucket] # not set on the list command but common enough to set here end |
Instance Method Details
#buckets ⇒ Object
11 12 13 14 |
# File 'lib/s3_secure/abstract_base.rb', line 11 def buckets resp = s3_client.list_buckets resp.buckets.map(&:name) end |