Module: SendGrid4r::REST::Sm

Includes:
Request
Included in:
API
Defined in:
lib/sendgrid4r/rest/sm/sm.rb,
lib/sendgrid4r/rest/sm/groups.rb,
lib/sendgrid4r/rest/sm/suppressions.rb,
lib/sendgrid4r/rest/sm/global_unsubscribes.rb

Overview

SendGrid Web API v3 Suppression Management

Defined Under Namespace

Modules: GlobalUnsubscribes, Groups, Suppressions Classes: RecipientEmail, RecipientEmails

Constant Summary

Constants included from Request

Request::BASE_URL

Class Method Summary collapse

Methods included from Request

#create_args, #delete, #execute, #finish, #get, #patch, #post, #process_array_params, #process_url_params, #put

Class Method Details

.create_recipient_email(resp) ⇒ Object



18
19
20
21
# File 'lib/sendgrid4r/rest/sm/sm.rb', line 18

def self.create_recipient_email(resp)
  return resp if resp.nil?
  RecipientEmail.new(resp['recipient_email'])
end

.create_recipient_emails(resp) ⇒ Object



13
14
15
16
# File 'lib/sendgrid4r/rest/sm/sm.rb', line 13

def self.create_recipient_emails(resp)
  return resp if resp.nil?
  RecipientEmails.new(resp['recipient_emails'])
end