Method: Evertils::Common::Authentication#call
- Defined in:
- lib/evertils/common/authentication.rb
#call(func, *args) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/evertils/common/authentication.rb', line 38 def call(func, *args) begin if args.size > 0 @noteStore.method(func.to_s).call(Evertils.token, *args) else @noteStore.method(func.to_s).call(Evertils.token) end rescue Evernote::EDAM::Error::EDAMUserException => e handle_edam_errors(e) rescue Evernote::EDAM::Error::EDAMSystemException => e handle_edam_errors(e) end end |