gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

Update README :after method must be replaced by :since method #266

Closed guilhermenunes09 closed 4 years ago

guilhermenunes09 commented 5 years ago

In the example: gmail.inbox.count(:after => Date.parse("2010-02-20"), :before => Date.parse("2010-03-20")) It seems that the attribute "after" does not exist anymore. The right replacement would be "since"

johnnyshields commented 4 years ago

Our lib uses after as the option here. SINCE is the native Gmail API. https://github.com/gmailgem/gmail/blob/c5e938942675fb3a3f71fa957e299a1cd1ee1577/lib/gmail/mailbox.rb#L35