Class: Kraps::Drivers::S3Driver
- Inherits:
-
Object
- Object
- Kraps::Drivers::S3Driver
- Includes:
- Driver
- Defined in:
- lib/kraps/drivers.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
readonly
Returns the value of attribute bucket.
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(s3_client:, bucket:, prefix: nil) ⇒ S3Driver
constructor
A new instance of S3Driver.
Methods included from Driver
#download, #exists?, #list, #store, #value, #with_prefix
Constructor Details
#initialize(s3_client:, bucket:, prefix: nil) ⇒ S3Driver
Returns a new instance of S3Driver.
38 39 40 41 42 |
# File 'lib/kraps/drivers.rb', line 38 def initialize(s3_client:, bucket:, prefix: nil) @driver = Attachie::S3Driver.new(s3_client) @bucket = bucket @prefix = prefix end |
Instance Attribute Details
#bucket ⇒ Object (readonly)
Returns the value of attribute bucket.
36 37 38 |
# File 'lib/kraps/drivers.rb', line 36 def bucket @bucket end |
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
36 37 38 |
# File 'lib/kraps/drivers.rb', line 36 def driver @driver end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
36 37 38 |
# File 'lib/kraps/drivers.rb', line 36 def prefix @prefix end |