lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb in twilio-ruby-5.0.0.rc24 vs lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -274,12 +274,15 @@ ) end ## # Access the members - # @return [MemberList] MemberList + # @return [MemberList] if a(n) MemberList object was created. + # @return [MemberContext] if a(n) MemberContext object was created. def members(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return MemberContext.new( @version, @solution[:service_sid], @solution[:sid], @@ -298,12 +301,15 @@ @members end ## # Access the messages - # @return [MessageList] MessageList + # @return [MessageList] if a(n) MessageList object was created. + # @return [MessageContext] if a(n) MessageContext object was created. def messages(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return MessageContext.new( @version, @solution[:service_sid], @solution[:sid], @@ -322,11 +328,14 @@ @messages end ## # Access the invites - # @return [InviteList] InviteList + # @return [InviteList] if a(n) InviteList object was created. + # @return [InviteContext] if a(n) InviteContext object was created. def invites(sid=:unset) + raise ArgumentError, 'sid cannot be nil' if sid.nil? + if sid != :unset return InviteContext.new( @version, @solution[:service_sid], @solution[:sid], \ No newline at end of file