Class: Kraps::Drivers::FakeDriver

Inherits:
Object
  • Object
show all
Includes:
Driver
Defined in:
lib/kraps/drivers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Driver

#with_prefix

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

#bucketObject (readonly)

Returns the value of attribute bucket.



28
29
30
# File 'lib/kraps/drivers.rb', line 28

def bucket
  @bucket
end

#driverObject (readonly)

Returns the value of attribute driver.



28
29
30
# File 'lib/kraps/drivers.rb', line 28

def driver
  @driver
end

#prefixObject (readonly)

Returns the value of attribute prefix.



28
29
30
# File 'lib/kraps/drivers.rb', line 28

def prefix
  @prefix
end