Class: S3Secure::AbstractBase
- Inherits:
-
Object
- Object
- S3Secure::AbstractBase
- Extended by:
- Memoist
- Includes:
- AwsServices
- Defined in:
- lib/s3_secure/abstract_base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #buckets ⇒ Object
-
#initialize(options = {}) ⇒ AbstractBase
constructor
A new instance of AbstractBase.
Methods included from AwsServices
#new_s3_regional_client, #s3_client, #s3_regional_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 |