Push notification service for restaurant Einstein.
How to use
Menu for any day
Push to phone
What's being returned?
#dishes returns an array of strings containing each dish for the given day.
What is being push to the phone?
Real world example
Here is a real world example using whenever.
It will push today's menu directly to your iPhone each day at 11:45 AM.
1 . Install whenever.
gem install whenever.
2 . Navigate to your application, run
3 . Add these lines to your
require "einstein" every 1.day, at: "11:45 am" do runner 'Einstein::Menu.new(:today).push_to("6576aa9fa3fc3e18aca8da9914a166b3")' end
4 . Create the cron task using
5 . Done!
How to install
[sudo] gem install einstein
Einstein is released under the MIT license.