Class: AndSon::AndSonClient
- Inherits:
-
Object
- Object
- AndSon::AndSonClient
- Includes:
- Client
- Defined in:
- lib/and-son/client.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#call(*args, &block) ⇒ Object
proxy the call method to the call runner.
- #call_runner ⇒ Object
- #hash ⇒ Object
Methods included from Client
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
49 50 51 |
# File 'lib/and-son/client.rb', line 49 def ==(other) other.kind_of?(self.class) ? self.hash == other.hash : super end |
#call(*args, &block) ⇒ Object
proxy the call method to the call runner
39 |
# File 'lib/and-son/client.rb', line 39 def call(*args, &block); self.call_runner.call(*args, &block); end |
#call_runner ⇒ Object
41 42 43 |
# File 'lib/and-son/client.rb', line 41 def call_runner AndSon::CallRunner.new(host, port) end |
#hash ⇒ Object
45 46 47 |
# File 'lib/and-son/client.rb', line 45 def hash self.call_runner.hash end |