Class: Debugbar::RequestBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/debugbar/buffers/request_buffer.rb

Class Method Summary collapse

Class Method Details

.clear!Object



27
28
29
30
# File 'lib/debugbar/buffers/request_buffer.rb', line 27

def clear!
  @adapter.clear!
  self
end

.each(&block) ⇒ Object



22
23
24
25
# File 'lib/debugbar/buffers/request_buffer.rb', line 22

def each(&block)
  @adapter.each(&block)
  self
end

.init(adapter) ⇒ Object



4
5
6
# File 'lib/debugbar/buffers/request_buffer.rb', line 4

def init(adapter)
  @adapter = adapter
end

.push(request) ⇒ Object



8
9
10
11
# File 'lib/debugbar/buffers/request_buffer.rb', line 8

def push(request)
  @adapter.push(request)
  nil # Why not return self?
end

.remove(ids) ⇒ Object



13
14
15
16
# File 'lib/debugbar/buffers/request_buffer.rb', line 13

def remove(ids)
  @adapter.remove(ids)
  self
end

.to_hObject



18
19
20
# File 'lib/debugbar/buffers/request_buffer.rb', line 18

def to_h
  @adapter.to_h
end