Permalink
Browse files

Added method options example.

  • Loading branch information...
1 parent ad9f5d6 commit 02ac1cedf434d4c4f8f9e90853720f12cd284aa1 @jnunemaker committed Nov 16, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/method_options.rb
View
@@ -0,0 +1,11 @@
+require_relative 'shared_setup'
+
+client = AppsCF
+adapter = Adapter[:cassanity].new(client)
+adapter.clear
+
+id = CassandraCQL::UUID.new
+
+adapter.write(id, {name: 'GitHub'}, using: {consistency: :quorum})
+pp adapter.read(id, using: {consistency: :quorum})
+adapter.delete(id)

0 comments on commit 02ac1ce

Please sign in to comment.