Sha256: cc395e5a883e1428fda528c6f3396b9d9b4c4e83040971c2e796933728df5a2e
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module SimpleSegment module Operations class Group < Operation def call request.post('/v1/group', build_payload) end def build_payload raise ArgumentError, 'group_id must be present' \ unless options[:group_id] base_payload.merge( traits: options[:traits], groupId: options[:group_id] ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_segment-0.2.1 | lib/simple_segment/operations/group.rb |
simple_segment-0.2.0 | lib/simple_segment/operations/group.rb |