Method: Propono::Client#subscribe

Defined in:
lib/propono/components/client.rb

#subscribe(topic) ⇒ Object

Creates a new SNS-SQS subscription on the specified topic.

This is implicitly called by #listen.

Parameters:

  • topic (String)

    The name of the topic to subscribe to.



62
63
64
# File 'lib/propono/components/client.rb', line 62

def subscribe(topic)
  QueueSubscription.create(aws_client, config, topic)
end