Class: MailEngine::Sendgrid::RestApi
- Inherits:
-
Object
- Object
- MailEngine::Sendgrid::RestApi
- Includes:
- HTTParty
- Defined in:
- lib/mail_engine/sendgrid/rest_api.rb
Class Method Summary (collapse)
-
+ (Object) blocks(options = {})
<blocks>.
-
+ (Object) bounces(options = {})
<bounces>.
-
+ (Object) invalidemails(options = {})
<invalidemails>.
-
+ (Object) spamreports(options = {})
<spamreports>.
-
+ (Object) stats(options = {})
<stats>.
Class Method Details
+ (Object) blocks(options = {})
<blocks>
<block> <email>exp_block_0466@sendgrid.com</email> <status></status> <reason>Some random block reason</reason> <created>2010-11-08 20:39:29</created> </block>
</blocks>
77 |
# File 'lib/mail_engine/sendgrid/rest_api.rb', line 77 def blocks = {} |
+ (Object) bounces(options = {})
<bounces>
<bounce> <email>email1@domain.com</email> <status>5.1.1</status> <reason>host [127.0.0.1] said: 550 5.1.1 unknown or illegal user: email1@domain.com</reason> <created>2009-06-10 12:40:30</created> </bounce>
</bounces>
41 |
# File 'lib/mail_engine/sendgrid/rest_api.rb', line 41 def bounces = {} |
+ (Object) invalidemails(options = {})
<invalidemails>
<invalidemail> <email>isaac@hotmail.comm</email> <reason>Mail domain mentioned in email address is unknown</reason> <created>2009-06-10 12:40:30</created> </invalidemail>
</invalidemails>
64 |
# File 'lib/mail_engine/sendgrid/rest_api.rb', line 64 def invalidemails = {} |
+ (Object) spamreports(options = {})
<spamreports>
<spamreport> <email>email1@domain.com</email> <created>2009-06-10 12:40:30</created> </spamreport>
</spamreports>
52 |
# File 'lib/mail_engine/sendgrid/rest_api.rb', line 52 def spamreports = {} |
+ (Object) stats(options = {})
<stats>
<day> <date>2009-06-20</date> <requests>12342</requests> <bounces>12</bounces> <clicks>10223</clicks> <opens>9992</opens> <spamreports>5</spamreports> <unique_clicks>3</unique_clicks> <unique_opens>6</unique_opens> <blocked>7</blocked> </day>
</stats>
28 |
# File 'lib/mail_engine/sendgrid/rest_api.rb', line 28 def stats = {} |