Class: Evernote::Client
- Inherits:
-
Object
- Object
- Evernote::Client
- Defined in:
- lib/evernote/client.rb
Constant Summary collapse
- THRIFT_DEFAULTS =
{ :transport => Thrift::HTTPClientTransport }.freeze
Instance Method Summary collapse
-
#initialize(klass, url, thrift_client_options = {}) ⇒ Client
constructor
A new instance of Client.
- #method_missing(name, *args, &block) ⇒ Object
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_opts = THRIFT_DEFAULTS.merge() @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 |