lib/simple_segment/operations/group.rb in simple_segment-0.1.0.pre2 vs lib/simple_segment/operations/group.rb in simple_segment-0.1.0
- old
+ new
@@ -1,9 +1,9 @@
module SimpleSegment
module Operations
class Group < Operation
def call
- Request.new('/v1/group', config).post(build_payload)
+ request.post('/v1/group', build_payload)
end
def build_payload
raise ArgumentError, 'group_id must be present' unless options[:group_id]