Sha256: 44f1af8e8e1d7ea9557a60711fd745ff75284c0ced6e69f048c8ec294f1d7ca4

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 Bytes

Contents

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

module SendGrid4r
  module Factory
    #
    # SendGrid Web API v3 Condition Factory Class implementation
    #
    class ConditionFactory
      def create(field:, value:, operator:, and_or:)
        REST::MarketingCampaigns::Contacts::Segments::Condition.new(
          field,
          value,
          operator,
          and_or
        ).to_h
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sendgrid4r-1.11.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.10.0 lib/sendgrid4r/factory/condition_factory.rb