Class: AndSon::AndSonClient

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/and-son/client.rb

Instance Method Summary collapse

Methods included from Client

included, new

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_runnerObject



41
42
43
# File 'lib/and-son/client.rb', line 41

def call_runner
  AndSon::CallRunner.new(host, port)
end

#hashObject



45
46
47
# File 'lib/and-son/client.rb', line 45

def hash
  self.call_runner.hash
end