Class: SmoothOperator::ConnectionWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/smooth_operator/operators/connection_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject (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

#runObject



10
11
12
# File 'lib/smooth_operator/operators/connection_wrapper.rb', line 10

def run
  connection.run
end