summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/zvoltronapi/talker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zvoltronapi/talker.rb b/lib/zvoltronapi/talker.rb
index daee4af..4fbc926 100644
--- a/lib/zvoltronapi/talker.rb
+++ b/lib/zvoltronapi/talker.rb
@@ -18,8 +18,8 @@ module ZVoltronApi
raise ArgumentError.new("Expectations not a hash") if not expectations.kind_of? Hash
raise ArgumentError.new("Empty expectations") if expectations.empty?
- @socket.send_message(message)
- response = @socket.read_message
+ self.send_message(message)
+ response = self.read_message
expectations.keys.each do |key|
raise ArgumentError.new("Expectation failed: #{key}") if not expectations[key].call(response[key])