Sha256: 69f752cf9f38770cf6045846e7a2b4eb2993f4a18323a937a71018767daf7c75

Contents?: true

Size: 670 Bytes

Versions: 8

Compression:

Stored size: 670 Bytes

Contents

module EvernoteOAuth

  class Client
    def user_store
      @user_store = EvernoteOAuth::UserStore.new(
	token: @token,
	client: thrift_client(::Evernote::EDAM::UserStore::UserStore::Client,
			      endpoint('edam/user'))
      )
    end
  end

  class UserStore
    include ::EvernoteOAuth::ThriftClientDelegation

    def initialize(options={})
      @token = options[:token]
      @client = options[:client]
      raise 'API version is not up to date' unless version_valid?
    end

    def version_valid?
      checkVersion("EDAMTest",
		   ::Evernote::EDAM::UserStore::EDAM_VERSION_MAJOR,
		   ::Evernote::EDAM::UserStore::EDAM_VERSION_MINOR)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
evernote_oauth-0.1.8 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.7 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.6 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.5 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.4 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.3 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.2 lib/evernote_oauth/user_store.rb
evernote_oauth-0.1.1 lib/evernote_oauth/user_store.rb