Class: Twilio::REST::ChatBase
- Defined in:
- lib/twilio-ruby/rest/chat_base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ ChatBase
constructor
Initialize chat domain.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #v1 ⇒ Object
- #v2 ⇒ Object
- #v3 ⇒ Object
Methods inherited from Domain
Constructor Details
permalink #initialize(twilio) ⇒ ChatBase
Initialize chat domain
19 20 21 22 23 24 25 26 27 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 19 def initialize(twilio) super(twilio) @base_url = "https://chat.twilio.com" @host = "chat.twilio.com" @port = 443 @v1 = nil @v2 = nil @v3 = nil end |
Instance Method Details
permalink #to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 43 def to_s '<Twilio::REST::Chat>'; end |
permalink #v1 ⇒ Object
[View source]
29 30 31 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 29 def v1 @v1 ||= Chat::V1.new self end |
permalink #v2 ⇒ Object
[View source]
33 34 35 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 33 def v2 @v2 ||= Chat::V2.new self end |
permalink #v3 ⇒ Object
[View source]
37 38 39 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 37 def v3 @v3 ||= Chat::V3.new self end |