Class: Evernote::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/evernote/client.rb

Constant Summary collapse

THRIFT_DEFAULTS =
{
  :transport => Thrift::HTTPClientTransport
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(klass, url, thrift_client_options = {}) ⇒ Client

Returns a new instance of Client.



8
9
10
11
# File 'lib/evernote/client.rb', line 8

def initialize(klass, url, thrift_client_options = {})
  thrift_opts = THRIFT_DEFAULTS.merge(thrift_client_options)
  @client = ThriftClient.new(klass, url, thrift_opts)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



13
14
15
# File 'lib/evernote/client.rb', line 13

def method_missing(name, *args, &block)
  @client.send(name, *args, &block)
end