Sha256: 10d7f7d6637daf7d5712625d822d51dfff6abfd58cea81fd86b9ea4b84add8f5
Contents?: true
Size: 564 Bytes
Versions: 5
Compression:
Stored size: 564 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: nil, list_id: nil, conditions:) segment = SendGrid4r::REST::Contacts::Segments::Segment.new( nil, name, list_id, conditions, nil ) hash = segment.to_h hash.delete(:id) hash.delete(:list_id) if list_id.nil? hash end end end end
Version data entries
5 entries across 5 versions & 1 rubygems