Sha256: 0ca0a30367f5bc69781ccfef8178c660093a831318eb4b34c3da9126d3ab0220

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

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

module SendGrid4r
  module Factory
    #
    # SendGrid Web API v3 Event Factory Class implementation
    #
    module EventFactory
      def self.create(enabled:, url: nil, group_resubscribe: nil,
        delivered: nil, group_unsubscribe: nil, spam_report: nil,
        bounce: nil, deferred: nil, unsubscribe: nil, processed: nil,
        open: nil, click: nil, dropped: nil)
        REST::Webhooks::Event::EventNotification.new(
          enabled, url, group_resubscribe, delivered,
          group_unsubscribe, spam_report, bounce, deferred,
          unsubscribe, processed, open, click, dropped
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sendgrid4r-1.15.0 lib/sendgrid4r/factory/event_factory.rb
sendgrid4r-1.14.0 lib/sendgrid4r/factory/event_factory.rb
sendgrid4r-1.13.0 lib/sendgrid4r/factory/event_factory.rb
sendgrid4r-1.12.0 lib/sendgrid4r/factory/event_factory.rb