Class: Rackprof::Observer

Inherits:
Object
  • Object
show all
Defined in:
lib/rackprof/observer.rb

Direct Known Subclasses

GCObserver, RequestObserver

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Observer

Returns a new instance of Observer.



5
6
7
# File 'lib/rackprof/observer.rb', line 5

def initialize(connection)
  @connection = connection
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



3
4
5
# File 'lib/rackprof/observer.rb', line 3

def connection
  @connection
end