Sha256: 4c630135bc2b1f920faed73cbe3515db2d4199eb31d7896cd34b40e980b9c959

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

# -*- encoding: utf-8 -*-

module SendGrid4r::REST
  #
  # SendGrid Web API v3 Suppression Management
  #
  module Sm
    include Request

    RecipientEmails = Struct.new(:recipient_emails)
    RecipientEmail = Struct.new(:recipient_email)

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sendgrid4r-1.15.0 lib/sendgrid4r/rest/sm/sm.rb
sendgrid4r-1.14.0 lib/sendgrid4r/rest/sm/sm.rb
sendgrid4r-1.13.0 lib/sendgrid4r/rest/sm/sm.rb
sendgrid4r-1.12.0 lib/sendgrid4r/rest/sm/sm.rb
sendgrid4r-1.11.0 lib/sendgrid4r/rest/sm/sm.rb
sendgrid4r-1.10.0 lib/sendgrid4r/rest/sm/sm.rb