Class: Twilio::REST::Trunking
- Defined in:
- lib/twilio-ruby/rest/trunking.rb,
lib/twilio-ruby/rest/trunking/v1.rb,
lib/twilio-ruby/rest/trunking/v1/trunk.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb,
lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ Trunking
constructor
Initialize the Trunking Domain.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #trunks(sid = :unset) ⇒ Twilio::REST::Trunking::V1::TrunkInstance, Twilio::REST::Trunking::V1::TrunkList
-
#v1 ⇒ Object
Version v1 of trunking.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Trunking
Initialize the Trunking Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/trunking.rb', line 14 def initialize(twilio) super @base_url = 'https://trunking.twilio.com' @host = 'trunking.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
42 43 44 |
# File 'lib/twilio-ruby/rest/trunking.rb', line 42 def to_s '#<Twilio::REST::Trunking>' end |
#trunks(sid = :unset) ⇒ Twilio::REST::Trunking::V1::TrunkInstance, Twilio::REST::Trunking::V1::TrunkList
36 37 38 |
# File 'lib/twilio-ruby/rest/trunking.rb', line 36 def trunks(sid=:unset) self.v1.trunks(sid) end |