Class: SongkickQueue::Client
- Inherits:
-
Object
- Object
- SongkickQueue::Client
- Defined in:
- lib/songkick_queue/client.rb
Instance Method Summary collapse
-
#channel ⇒ Bunny::Channel
Creates a memoized channel for issuing RabbitMQ commands.
-
#connection ⇒ Bunny::Session
Creates a memoized connection to RabbitMQ.
- #default_exchange ⇒ Object
Instance Method Details
#channel ⇒ Bunny::Channel
Creates a memoized channel for issuing RabbitMQ commands
10 11 12 |
# File 'lib/songkick_queue/client.rb', line 10 def channel @channel ||= build_channel end |
#connection ⇒ Bunny::Session
Creates a memoized connection to RabbitMQ
17 18 19 |
# File 'lib/songkick_queue/client.rb', line 17 def connection @connection ||= build_connection end |
#default_exchange ⇒ Object
3 4 5 |
# File 'lib/songkick_queue/client.rb', line 3 def default_exchange channel.default_exchange end |