Sha256: cc54c2ca416fdc97ca6f7fec88e11e62951f9cd67e01e97f136961f837939a29

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 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:)
        SendGrid4r::REST::Contacts::Segments::Condition.new(
          field,
          value,
          operator,
          and_or
        ).to_h
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sendgrid4r-1.8.1 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.8.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.7.1 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.7.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.6.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.5.1 lib/sendgrid4r/factory/condition_factory.rb