Class: Messaging::Adapters::Postgres::Streams

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/messaging/adapters/postgres/streams.rb

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



15
16
17
# File 'lib/messaging/adapters/postgres/streams.rb', line 15

def [](name)
  Stream.new(name)
end

#eachObject



7
8
9
10
11
12
13
# File 'lib/messaging/adapters/postgres/streams.rb', line 7

def each
  return enum_for(:each) unless block_given?

  all_streams.each do |name|
    yield Stream.new(name)
  end
end