Sha256: f3b4af3a10c0baa4daaa1ac681478c608339141027792df1cfbf522e9ad7eb49

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

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

module SendGrid4r
  module Factory
    #
    # SendGrid Web API v3 Segment Factory Class implementation
    #
    class SegmentFactory
      def create(name:, conditions:)
        SendGrid4r::REST::Contacts::Segments::Segment.new(
          nil,
          name,
          nil,
          conditions,
          nil
        ).to_h
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sendgrid4r-1.1.0 lib/sendgrid4r/factory/segment_factory.rb
sendgrid4r-1.0.0 lib/sendgrid4r/factory/segment_factory.rb
sendgrid4r-0.5.0 lib/sendgrid4r/factory/segment_factory.rb
sendgrid4r-0.4.0 lib/sendgrid4r/factory/segment_factory.rb
sendgrid4r-0.3.0 lib/sendgrid4r/factory/segment_factory.rb
sendgrid4r-0.2.0 lib/sendgrid4r/factory/segment_factory.rb