Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use @client.

Saves a method call and makes no difference to me.
  • Loading branch information...
commit 941f24a71cc8c04a8bc7c4c9de7dbdf8cbe4fe9d 1 parent 2fb65b3
@jnunemaker authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/adapter/cassanity.rb
View
8 lib/adapter/cassanity.rb
@@ -14,7 +14,7 @@ def read(key, options = nil)
adapter_options = @options[:read]
arguments = update_arguments(operation_options, adapter_options, options)
- rows = client.select(arguments)
+ rows = @client.select(arguments)
rows.empty? ? nil : decode(rows.first)
end
@@ -24,7 +24,7 @@ def write(key, attributes, options = nil)
adapter_options = @options[:write]
arguments = update_arguments(operation_options, adapter_options, options)
- client.update(arguments)
+ @client.update(arguments)
end
# Public
@@ -33,12 +33,12 @@ def delete(key, options = nil)
adapter_options = @options[:delete]
arguments = update_arguments(operation_options, adapter_options, options)
- client.delete(arguments)
+ @client.delete(arguments)
end
# Public
def clear
- client.truncate
+ @client.truncate
end
# Private

0 comments on commit 941f24a

Please sign in to comment.
Something went wrong with that request. Please try again.