Class: DispatchRider::NotificationServices::FileSystem::Channel
- Inherits:
-
Object
- Object
- DispatchRider::NotificationServices::FileSystem::Channel
- Defined in:
- lib/dispatch-rider/notification_services/file_system/channel.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Channel
constructor
A new instance of Channel.
- #publish(message) ⇒ Object
Constructor Details
#initialize(path) ⇒ Channel
Returns a new instance of Channel.
7 8 9 |
# File 'lib/dispatch-rider/notification_services/file_system/channel.rb', line 7 def initialize(path) @file_system_queue = DispatchRider::QueueServices::FileSystem::Queue.new(path) end |
Instance Method Details
#publish(message) ⇒ Object
11 12 13 |
# File 'lib/dispatch-rider/notification_services/file_system/channel.rb', line 11 def publish() @file_system_queue.add() end |