Class: RServiceBus2::SendAtStorage
- Inherits:
-
Object
- Object
- RServiceBus2::SendAtStorage
- Defined in:
- lib/rservicebus2/sendat_storage.rb
Overview
Send At Storage
Class Method Summary collapse
Class Method Details
.get(uri) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rservicebus2/sendat_storage.rb', line 5 def self.get(uri) case uri.scheme when 'file' require 'rservicebus2/sendat_storage/file' return SendAtStorageFile.new(uri) when 'inmem' require 'rservicebus2/sendat_storage/inmemory' return SendAtStorageInMemory.new(uri) else abort("Scheme, #{uri.scheme}, not recognised when configuring SendAtStorage, #{uri}") end end |