Class: EvernoteOAuth::UserStore::Store

Inherits:
Object
  • Object
show all
Includes:
ThriftClientDelegation
Defined in:
lib/evernote_oauth/user_store.rb

Instance Method Summary collapse

Methods included from ThriftClientDelegation

#method_missing

Constructor Details

#initialize(options = {}) ⇒ Store

Returns a new instance of Store.



19
20
21
22
23
# File 'lib/evernote_oauth/user_store.rb', line 19

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class EvernoteOAuth::ThriftClientDelegation

Instance Method Details

#version_valid?Boolean

Returns:

  • (Boolean)


25
26
27
28
29
# File 'lib/evernote_oauth/user_store.rb', line 25

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