Class: SendGridWebApi::Modules::EventNotification

Inherits:
Client
  • Object
show all
Defined in:
lib/web_api/event_notification.rb

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Client

#base_url

Methods included from SendGridWebApi::Modules

#apikey, #blocks, #bounces, #event_notification, #invalid_emails, #mail, #parse_email, #profile, #spam, #stats, #sub_user, #unsubscribes

Methods inherited from Base

#builder_options, #initialize, #make_request_url, #query_api, #query_delete_api, #query_patch_api, #query_post_api, #query_post_json_api, #session, #to_query

Constructor Details

This class inherits a constructor from SendGridWebApi::Base

Instance Method Details

#delete(options = {}) ⇒ Object



13
14
15
16
# File 'lib/web_api/event_notification.rb', line 13

def delete options = {}
  event_delete_url = "eventposturl.delete.json"
  query_api(event_delete_url, options)
end

#get(options = {}) ⇒ Object



3
4
5
6
# File 'lib/web_api/event_notification.rb', line 3

def get options = {}
  event_get_url = "eventposturl.get.json"
  query_api(event_get_url, options)
end

#set(options = {}) ⇒ Object



8
9
10
11
# File 'lib/web_api/event_notification.rb', line 8

def set options = {}
  event_set_url = "eventposturl.set.json"
  query_api(event_set_url, options)
end