Sha256: 3cb2fa94fe8d089b71d283ead4e99f8e592269a069cad685d666b6ecd2face66

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

module EvernoteOAuth

  class Client
    def note_store(options={})
      @note_store = EvernoteOAuth::NoteStore.new(
	client: thrift_client(::Evernote::EDAM::NoteStore::NoteStore::Client,
			      user_store(options).getNoteStoreUrl(@token),
			      options)
      )
    end
  end

  class NoteStore
    def initialize(options={})
      @client = options[:client]
    end

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evernote_oauth-0.0.4 lib/evernote_oauth/note_store.rb
evernote_oauth-0.0.3 lib/evernote_oauth/note_store.rb
evernote_oauth-0.0.1 lib/evernote_oauth/note_store.rb