Class: Distribot::ConnectionSharer

Inherits:
Object
  • Object
show all
Defined in:
lib/distribot/connector.rb

Direct Known Subclasses

MultiSubscription, Subscription

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bunny) ⇒ ConnectionSharer

Returns a new instance of ConnectionSharer.



42
43
44
45
# File 'lib/distribot/connector.rb', line 42

def initialize(bunny)
  self.bunny = bunny
  @channel = nil
end

Instance Attribute Details

#bunnyObject

Returns the value of attribute bunny.



41
42
43
# File 'lib/distribot/connector.rb', line 41

def bunny
  @bunny
end

#channelObject

Returns the value of attribute channel.



41
42
43
# File 'lib/distribot/connector.rb', line 41

def channel
  @channel
end

Instance Method Details

#loggerObject



51
52
53
# File 'lib/distribot/connector.rb', line 51

def logger
  Distribot.logger
end