Sha256: d88fec3ae9f2e4e12bf82810bd3375b412e5a47eac31e0031cc1699615d2ada4

Contents?: true

Size: 1.57 KB

Versions: 18

Compression:

Stored size: 1.57 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
#
# frozen_string_literal: true

module Twilio
  module REST
    class Routes < Domain
      ##
      # Initialize the Routes Domain
      def initialize(twilio)
        super

        @base_url = 'https://routes.twilio.com'
        @host = 'routes.twilio.com'
        @port = 443

        # Versions
        @v2 = nil
      end

      ##
      # Version v2 of routes
      def v2
        @v2 ||= V2.new self
      end

      ##
      # @param [String] phone_number The phone number in E.164 format
      # @return [Twilio::REST::Routes::V2::PhoneNumberInstance] if phone_number was passed.
      # @return [Twilio::REST::Routes::V2::PhoneNumberList]
      def phone_numbers(phone_number=:unset)
        self.v2.phone_numbers(phone_number)
      end

      ##
      # @param [String] sip_domain The sip_domain
      # @return [Twilio::REST::Routes::V2::SipDomainInstance] if sip_domain was passed.
      # @return [Twilio::REST::Routes::V2::SipDomainList]
      def sip_domains(sip_domain=:unset)
        self.v2.sip_domains(sip_domain)
      end

      ##
      # @param [String] sip_trunk_domain The absolute URL of the SIP Trunk
      # @return [Twilio::REST::Routes::V2::TrunkInstance] if sip_trunk_domain was passed.
      # @return [Twilio::REST::Routes::V2::TrunkList]
      def trunks(sip_trunk_domain=:unset)
        self.v2.trunks(sip_trunk_domain)
      end

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Routes>'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.76.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.75.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.5 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.4 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.3 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.2 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.1 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.74.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.73.4 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.73.3 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.73.2 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.73.1 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.73.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.72.1 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.72.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.71.0 lib/twilio-ruby/rest/routes.rb
twilio-ruby-5.70.1 lib/twilio-ruby/rest/routes.rb