sendgrid / sendgrid-ruby

The Official Twilio SendGrid Led, Community Driven Ruby API Library
https://sendgrid.com
MIT License
620 stars 324 forks source link

fix: email is required #457

Closed luk4s closed 3 years ago

luk4s commented 3 years ago

chore: SendGrid::Email mandatory email argument

class in constructor have definition email: nil but actually it can't work without "email". I think it can be confused. If I pass blank or invalid string there, it fail in split_email method => I suggest to raise ArgumentError with explanation instead.

Checklist