Class: Arproxy::ChainTail

Inherits:
Base
  • Object
show all
Defined in:
lib/arproxy/chain_tail.rb

Instance Attribute Summary

Attributes inherited from Base

#next_proxy, #proxy_chain

Instance Method Summary collapse

Constructor Details

#initialize(proxy_chain) ⇒ ChainTail

Returns a new instance of ChainTail.



3
4
5
# File 'lib/arproxy/chain_tail.rb', line 3

def initialize(proxy_chain)
  self.proxy_chain = proxy_chain
end

Instance Method Details

#execute(sql, name = nil) ⇒ Object



7
8
9
# File 'lib/arproxy/chain_tail.rb', line 7

def execute(sql, name=nil)
  self.proxy_chain.connection.execute_without_arproxy sql, name
end