Class: SmoothOperator::ConnectionWrapper
- Inherits:
-
Object
- Object
- SmoothOperator::ConnectionWrapper
- Defined in:
- lib/smooth_operator/operators/connection_wrapper.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(connection) ⇒ ConnectionWrapper
constructor
A new instance of ConnectionWrapper.
- #run ⇒ Object
Constructor Details
#initialize(connection) ⇒ ConnectionWrapper
Returns a new instance of ConnectionWrapper.
6 7 8 |
# File 'lib/smooth_operator/operators/connection_wrapper.rb', line 6 def initialize(connection) @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/smooth_operator/operators/connection_wrapper.rb', line 4 def connection @connection end |
Instance Method Details
#run ⇒ Object
10 11 12 |
# File 'lib/smooth_operator/operators/connection_wrapper.rb', line 10 def run connection.run end |