Class: Bunnicula::Exchange
Instance Attribute Summary collapse
-
#ack ⇒ Object
readonly
Returns the value of attribute ack.
-
#durable ⇒ Object
readonly
Returns the value of attribute durable.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(exchange_name = nil, options = {}) ⇒ Exchange
constructor
A new instance of Exchange.
Constructor Details
#initialize(exchange_name = nil, options = {}) ⇒ Exchange
Returns a new instance of Exchange.
5 6 7 8 9 10 11 |
# File 'lib/bunnicula/exchange.rb', line 5 def initialize(exchange_name=nil,={}) @name = exchange_name @type = .delete(:type) || .delete(:exchange_type) @durable = .delete(:durable) @ack = .delete(:ack) @routing_key = .delete(:routing_key) end |
Instance Attribute Details
#ack ⇒ Object (readonly)
Returns the value of attribute ack.
3 4 5 |
# File 'lib/bunnicula/exchange.rb', line 3 def ack @ack end |
#durable ⇒ Object (readonly)
Returns the value of attribute durable.
3 4 5 |
# File 'lib/bunnicula/exchange.rb', line 3 def durable @durable end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/bunnicula/exchange.rb', line 3 def name @name end |
#routing_key ⇒ Object (readonly)
Returns the value of attribute routing_key.
3 4 5 |
# File 'lib/bunnicula/exchange.rb', line 3 def routing_key @routing_key end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/bunnicula/exchange.rb', line 3 def type @type end |