Class: Twilio::REST::VoiceBase

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/voice_base.rb

Direct Known Subclasses

Voice

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ VoiceBase

Initialize voice domain

Parameters:

  • twilio
    • The twilio client



19
20
21
22
23
24
# File 'lib/twilio-ruby/rest/voice_base.rb', line 19

def initialize(twilio)
  super(twilio)
  @base_url =  "https://voice.twilio.com"
  @host = "voice.twilio.com"
  @port = 443
end

Instance Method Details

#to_sObject

Provide a user friendly representation



28
29
30
# File 'lib/twilio-ruby/rest/voice_base.rb', line 28

def to_s
  '<Twilio::REST::Voice>';
end