Class: Kraps::Drivers::FakeDriver
- Inherits:
-
Object
- Object
- Kraps::Drivers::FakeDriver
- 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(bucket:, prefix: nil) ⇒ FakeDriver
constructor
A new instance of FakeDriver.
Methods included from Driver
Constructor Details
#initialize(bucket:, prefix: nil) ⇒ FakeDriver
Returns a new instance of FakeDriver.
30 31 32 33 34 |
# File 'lib/kraps/drivers.rb', line 30 def initialize(bucket:, prefix: nil) @driver = Attachie::FakeDriver.new @bucket = bucket @prefix = prefix end |
Instance Attribute Details
#bucket ⇒ Object (readonly)
Returns the value of attribute bucket.
28 29 30 |
# File 'lib/kraps/drivers.rb', line 28 def bucket @bucket end |
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
28 29 30 |
# File 'lib/kraps/drivers.rb', line 28 def driver @driver end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
28 29 30 |
# File 'lib/kraps/drivers.rb', line 28 def prefix @prefix end |