lib/twilio-ruby/rest/notify/v1/service.rb in twilio-ruby-5.11.2 vs lib/twilio-ruby/rest/notify/v1/service.rb in twilio-ruby-5.12.0
- old
+ new
@@ -226,12 +226,10 @@
@uri = "/Services/#{@solution[:sid]}"
# Dependents
@bindings = nil
@notifications = nil
- @users = nil
- @segments = nil
end
##
# Deletes the ServiceInstance
# @return [Boolean] true if delete succeeds, true otherwise
@@ -338,40 +336,10 @@
@notifications
end
##
- # Access the users
- # @return [UserList]
- # @return [UserContext] if identity was passed.
- def users(identity=:unset)
- raise ArgumentError, 'identity cannot be nil' if identity.nil?
-
- if identity != :unset
- return UserContext.new(@version, @solution[:sid], identity, )
- end
-
- unless @users
- @users = UserList.new(@version, service_sid: @solution[:sid], )
- end
-
- @users
- end
-
- ##
- # Access the segments
- # @return [SegmentList]
- # @return [SegmentContext]
- def segments
- unless @segments
- @segments = SegmentList.new(@version, service_sid: @solution[:sid], )
- end
-
- @segments
- end
-
- ##
# Provide a user friendly representation
def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Notify.V1.ServiceContext #{context}>"
end
@@ -606,23 +574,9 @@
##
# Access the notifications
# @return [notifications] notifications
def notifications
context.notifications
- end
-
- ##
- # Access the users
- # @return [users] users
- def users
- context.users
- end
-
- ##
- # Access the segments
- # @return [segments] segments
- def segments
- context.segments
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file