summaryrefslogtreecommitdiffstats
path: root/lib/evernote/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/evernote/client.rb')
-rw-r--r--lib/evernote/client.rb13
1 files changed, 13 insertions, 0 deletions
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