Sha256: a34ba4bc94bbf54eeb8c366bb879d6155b37bee47030adbd19da206afaafc5ae

Contents?: true

Size: 436 Bytes

Versions: 11

Compression:

Stored size: 436 Bytes

Contents

# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.dirname(__FILE__)

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

11 entries across 11 versions & 1 rubygems

Version Path
sendgrid4r-1.5.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.4.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.3.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.2.1 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.2.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.1.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-1.0.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-0.5.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-0.4.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-0.3.0 lib/sendgrid4r/factory/condition_factory.rb
sendgrid4r-0.2.0 lib/sendgrid4r/factory/condition_factory.rb