Class: Rackprof::Observer
- Inherits:
-
Object
- Object
- Rackprof::Observer
- Defined in:
- lib/rackprof/observer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Observer
constructor
A new instance of Observer.
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
3 4 5 |
# File 'lib/rackprof/observer.rb', line 3 def connection @connection end |