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
#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
#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 |
#v1 ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/chat_base.rb', line 29 def v1 @v1 ||= Chat::V1.new self end |