Class: SendGridWebApi::SubUserModules::Unsubscribe
- Inherits:
-
SendGridWebApi::SubUser
- Object
- Base
- SendGridWebApi::SubUser
- SendGridWebApi::SubUserModules::Unsubscribe
- Defined in:
- lib/sub_user/unsubscribes.rb
Constant Summary collapse
- UNSUBSCRIBE_URL =
"api/user.unsubscribes.json"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from SendGridWebApi::SubUser
Methods included from SendGridWebApi::SubUserModules
#apps, #auth, #bounces, #event_notification, #iframe, #invalid_emails, #ip_management, #limits, #management, #monitor_records, #parse_email, #spam, #stats, #unsubscribes, #white_label
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
#add(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/sub_user/unsubscribes.rb', line 10 def add = {} .merge!({:task => "add"}) unless [:task] query_api(UNSUBSCRIBE_URL, ) end |
#delete(options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/sub_user/unsubscribes.rb', line 16 def delete = {} .merge!({:task => "delete"}) unless [:task] query_api(UNSUBSCRIBE_URL, ) end |
#get(options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/sub_user/unsubscribes.rb', line 5 def get = {} .merge!({:task => "get"}) unless [:task] query_api(UNSUBSCRIBE_URL, ) end |