Class: Bunny::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/bunny/testing.rb

Instance Method Summary collapse

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/bunny/testing.rb', line 44

def connected?
  true
end

#next_channel_idObject



52
53
54
# File 'lib/bunny/testing.rb', line 52

def next_channel_id
  @bunny_testing_channel_id = (@bunny_testing_channel_id || 0) + 1
end

#open?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/bunny/testing.rb', line 48

def open?
  true
end

#startObject



56
57
58
# File 'lib/bunny/testing.rb', line 56

def start
  self
end