Class: Twilio::REST::Chat
- Defined in:
- lib/twilio-ruby/rest/chat.rb,
lib/twilio-ruby/rest/chat/v1.rb,
lib/twilio-ruby/rest/chat/v2.rb,
lib/twilio-ruby/rest/chat/v3.rb,
lib/twilio-ruby/rest/chat/v1/service.rb,
lib/twilio-ruby/rest/chat/v2/service.rb,
lib/twilio-ruby/rest/chat/v3/channel.rb,
lib/twilio-ruby/rest/chat/v1/credential.rb,
lib/twilio-ruby/rest/chat/v2/credential.rb,
lib/twilio-ruby/rest/chat/v1/service/role.rb,
lib/twilio-ruby/rest/chat/v1/service/user.rb,
lib/twilio-ruby/rest/chat/v2/service/role.rb,
lib/twilio-ruby/rest/chat/v2/service/user.rb,
lib/twilio-ruby/rest/chat/v1/service/channel.rb,
lib/twilio-ruby/rest/chat/v2/service/binding.rb,
lib/twilio-ruby/rest/chat/v2/service/channel.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/member.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/member.rb,
lib/twilio-ruby/rest/chat/v1/service/channel/message.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/message.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb,
lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb,
lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb,
lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
- #channels(service_sid = :unset, sid = :unset) ⇒ Twilio::REST::Chat::V3::ChannelInstance, Twilio::REST::Chat::V3::ChannelList
- #credentials(sid = :unset) ⇒ Twilio::REST::Chat::V2::CredentialInstance, Twilio::REST::Chat::V2::CredentialList
-
#initialize(twilio) ⇒ Chat
constructor
Initialize the Chat Domain.
- #services(sid = :unset) ⇒ Twilio::REST::Chat::V2::ServiceInstance, Twilio::REST::Chat::V2::ServiceList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of chat.
-
#v2 ⇒ Object
Version v2 of chat.
-
#v3 ⇒ Object
Version v3 of chat.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Chat
Initialize the Chat Domain
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/chat.rb', line 14 def initialize(twilio) super @base_url = 'https://chat.twilio.com' @host = 'chat.twilio.com' @port = 443 # Versions @v1 = nil @v2 = nil @v3 = nil end |
Instance Method Details
#channels(service_sid = :unset, sid = :unset) ⇒ Twilio::REST::Chat::V3::ChannelInstance, Twilio::REST::Chat::V3::ChannelList
68 69 70 |
# File 'lib/twilio-ruby/rest/chat.rb', line 68 def channels(service_sid=:unset, sid=:unset) self.v3.channels(service_sid, sid) end |
#credentials(sid = :unset) ⇒ Twilio::REST::Chat::V2::CredentialInstance, Twilio::REST::Chat::V2::CredentialList
50 51 52 |
# File 'lib/twilio-ruby/rest/chat.rb', line 50 def credentials(sid=:unset) self.v2.credentials(sid) end |
#services(sid = :unset) ⇒ Twilio::REST::Chat::V2::ServiceInstance, Twilio::REST::Chat::V2::ServiceList
59 60 61 |
# File 'lib/twilio-ruby/rest/chat.rb', line 59 def services(sid=:unset) self.v2.services(sid) end |
#to_s ⇒ Object
Provide a user friendly representation
74 75 76 |
# File 'lib/twilio-ruby/rest/chat.rb', line 74 def to_s '#<Twilio::REST::Chat>' end |
#v1 ⇒ Object
Version v1 of chat
29 30 31 |
# File 'lib/twilio-ruby/rest/chat.rb', line 29 def v1 @v1 ||= V1.new self end |