Class: SendGrid4r::Factory::ConditionFactory
- Inherits:
-
Object
- Object
- SendGrid4r::Factory::ConditionFactory
- Defined in:
- lib/sendgrid4r/factory/condition_factory.rb
Overview
SendGrid Web API v3 Condition Factory Class implementation
Instance Method Summary collapse
Instance Method Details
#create(field:, value:, operator:, and_or: nil) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/sendgrid4r/factory/condition_factory.rb', line 9 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 |