Method: Twilio::REST::Chat::V3#channels
- Defined in:
-
lib/twilio-ruby/rest/chat/v3.rb,
lib/twilio-ruby/rest/chat/v3.rb
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/twilio-ruby/rest/chat/v3.rb', line 32 def channels(service_sid=:unset, sid=:unset) if service_sid.nil? raise ArgumentError, 'service_sid cannot be nil' end if sid.nil? raise ArgumentError, 'sid cannot be nil' end if service_sid == :unset && sid == :unset @channels ||= ChannelList.new self else ChannelContext.new(self, service_sid, sid) end end |