Skip to content

Commit

Permalink
API reference docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klishin committed Jan 17, 2013
1 parent 5e39924 commit 2512d84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/bunny/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,15 @@ def exchange_declare(name, type, opts = {})
@last_exchange_declare_ok
end

# Deletes a exchange using exchange.delete AMQP 0.9.1 method
#
# @param [String] name Exchange name
# @param [Hash] opts Options
#
# @option opts [Boolean] if_unused (false) Should this exchange be deleted only if it is no longer used
#
# @return [AMQ::Protocol::Exchange::DeleteOk] RabbitMQ response
# @see http://rubybunny.info/articles/exchanges.html Exchanges and Publishing guide
def exchange_delete(name, opts = {})
raise_if_no_longer_open!

Expand Down

0 comments on commit 2512d84

Please sign in to comment.