Class: BunnyMock::Consumer

Inherits:
Object
  • Object
show all
Defined in:
lib/support/bunny_mock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(c) ⇒ Consumer

Returns a new instance of Consumer.



25
26
27
# File 'lib/support/bunny_mock.rb', line 25

def initialize(c)
  self.message_count = c
end

Instance Attribute Details

#message_countObject

Returns the value of attribute message_count.



24
25
26
# File 'lib/support/bunny_mock.rb', line 24

def message_count
  @message_count
end