summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Sepic2010-02-20 10:02:23 -0600
committerChris Sepic2010-02-20 10:02:23 -0600
commit506b8e48ac62cd342b43b13054e08053abb09c6e (patch)
treeead54d853237c464d1bb17af96cc932d71ffaccb /lib
parent012604a4c57c79d5349afcb63a40a12b8f0c57ab (diff)
downloadevernote-506b8e48ac62cd342b43b13054e08053abb09c6e.tar.bz2
starting some wrapper classes
Diffstat (limited to 'lib')
-rw-r--r--lib/evernote.rb1
-rw-r--r--lib/evernote/client.rb13
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/evernote.rb b/lib/evernote.rb
index 3f9bae8..e02344b 100644
--- a/lib/evernote.rb
+++ b/lib/evernote.rb
@@ -5,3 +5,4 @@ gen_rb_path = File.expand_path(File.dirname(__FILE__) + "/../vendor/gen-rb")
$LOAD_PATH.unshift gen_rb_path
$LOAD_PATH.unshift "#{gen_rb_path}/evernote/edam"
require "#{gen_rb_path}/evernote"
+require "evernote/client" \ No newline at end of file
diff --git a/lib/evernote/client.rb b/lib/evernote/client.rb
new file mode 100644
index 0000000..1141087
--- /dev/null
+++ b/lib/evernote/client.rb
@@ -0,0 +1,13 @@
+module Evernote
+ class Client
+
+ THRIFT_DEFAULTS = {
+ :transport => Thrift::HTTPClientTransport
+ }.freeze
+
+ def initialize(klass, url, thrift_client_options = {})
+ thrift_opts = THRIFT_DEFAULTS.merge(thrift_client_options)
+ ThriftClient.new(klass, url, thrift_opts)
+ end
+ end
+end \ No newline at end of file