Sha256: 3fd973d2c345d7148a09a793a66c9bdff2b0b2b4d3c98dbe21b2f23289670ac5

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 Bytes

Contents

module EvernoteOAuth

  module NoteStore
    include ::EvernoteOAuth::UserStore

    # Returns note_store
    #
    # @return [EvernoteOAuth::NoteStore::Store]
    def note_store(options={})
      @note_store = EvernoteOAuth::NoteStore::Store.new(
        token: options[:token] || @token,
        client: thrift_client(::Evernote::EDAM::NoteStore::NoteStore::Client,
                              options[:note_store_url] || user_store.getNoteStoreUrl)
      )
    end

    class Store
      include ::EvernoteOAuth::ThriftClientDelegation

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

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
evernote_oauth-0.2.3 lib/evernote_oauth/note_store.rb
evernote_oauth-0.2.2 lib/evernote_oauth/note_store.rb
evernote_oauth-0.2.1 lib/evernote_oauth/note_store.rb
evernote_oauth-0.2.0 lib/evernote_oauth/note_store.rb