lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb in twilio-ruby-5.6.1
- old
+ new
@@ -31,11 +31,11 @@
# Retrieve a single page of SegmentMembershipInstance records from the API.
# Request is executed immediately.
# @param [String] segment The segment
# @return [SegmentMembershipInstance] Newly created SegmentMembershipInstance
def create(segment: nil)
- data = Twilio::Values.of({'Segment' => segment})
+ data = Twilio::Values.of({'Segment' => segment, })
payload = @version.create(
'POST',
@uri,
data: data
@@ -104,10 +104,10 @@
# @return [SegmentMembershipContext] SegmentMembershipContext
def initialize(version, service_sid, identity, segment)
super(version)
# Path Solution
- @solution = {service_sid: service_sid, identity: identity, segment: segment}
+ @solution = {service_sid: service_sid, identity: identity, segment: segment, }
@uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:identity]}/SegmentMemberships/#{@solution[:segment]}"
end
##
# Deletes the SegmentMembershipInstance
\ No newline at end of file