Class: Arproxy::Proxy
- Inherits:
-
Object
- Object
- Arproxy::Proxy
- Defined in:
- lib/arproxy/proxy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#next_proxy ⇒ Object
Returns the value of attribute next_proxy.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
5 6 7 |
# File 'lib/arproxy/proxy.rb', line 5 def context @context end |
#next_proxy ⇒ Object
Returns the value of attribute next_proxy.
5 6 7 |
# File 'lib/arproxy/proxy.rb', line 5 def next_proxy @next_proxy end |
Instance Method Details
#execute(sql, context) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/arproxy/proxy.rb', line 7 def execute(sql, context) unless context.instance_of?(QueryContext) raise Arproxy::Error, "`context` is expected a `Arproxy::QueryContext` but got `#{context.class}`" end next_proxy.execute(sql, context) end |