Method: Lowdown::Client#initialize

Defined in:
lib/lowdown/client.rb

#initialize(connection:, default_topic: nil) ⇒ Client

You should normally use any of the other constructors to create a Client object.

Parameters:

  • connection (Connection, Celluloid::Supervision::Container::Pool<Connection>)

    a single Connection or a pool of Connection actors configured to connect to the remote service.

  • default_topic (String) (defaults to: nil)

    the ‘topic’ to use if the Certificate is a Universal Certificate and a Notification doesn’t explicitely provide one.

[View source]

128
129
130
# File 'lib/lowdown/client.rb', line 128

def initialize(connection:, default_topic: nil)
  @connection, @default_topic = connection, default_topic
end