class SendGrid4r::Factory::ConditionFactory
SendGrid Web API v3 Condition Factory
Class implementation
Public Instance Methods
create(field:, value:, operator:, and_or: nil)
click to toggle source
# File lib/sendgrid4r/factory/condition_factory.rb, line 8 def create(field:, value:, operator:, and_or: nil) REST::MarketingCampaigns::Contacts::Segments::Condition.new( field, value, operator, and_or.nil? ? '' : and_or ).to_h end