Class: Kestrel::Client::Proxy
- Inherits:
-
Object
- Object
- Kestrel::Client::Proxy
- Defined in:
- lib/kestrel/client/proxy.rb
Direct Known Subclasses
Blocking, Envelope, Json, Namespace, Partitioning, Transactional, Unmarshal
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(client) ⇒ Proxy
Returns a new instance of Proxy.
6 7 8 |
# File 'lib/kestrel/client/proxy.rb', line 6 def initialize(client) @client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/kestrel/client/proxy.rb', line 10 def method_missing(method, *args, &block) client.send(method, *args, &block) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/kestrel/client/proxy.rb', line 4 def client @client end |