lib/evertils/common/authentication.rb in evertils-common-0.2.6 vs lib/evertils/common/authentication.rb in evertils-common-0.2.7
- old
+ new
@@ -41,8 +41,16 @@
end
def user
@@user.getUser(Evertils::Common::EVERNOTE_DEVELOPER_TOKEN)
end
+
+ def call(func, *args)
+ if args.size > 0
+ @store.method(func.to_s).call(Evertils::Common::EVERNOTE_DEVELOPER_TOKEN, *args)
+ else
+ @store.method(func.to_s).call(Evertils::Common::EVERNOTE_DEVELOPER_TOKEN)
+ end
+ end
end
end
end
\ No newline at end of file