Sha256: 5c142f02ea165cedd30d444249d20e2cb3b3e5e6954835556e25fb526da99330

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

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

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

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

        # Versions
        @v1 = nil
      end

      ##
      # Version v1 of voice
      def v1
        @v1 ||= V1.new self
      end

      ##
      # @return [Twilio::REST::Voice::V1::DialingPermissionsInstance]
      def dialing_permissions
        self.v1.dialing_permissions()
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.23.0 lib/twilio-ruby/rest/voice.rb
twilio-ruby-5.22.3 lib/twilio-ruby/rest/voice.rb
twilio-ruby-5.22.2 lib/twilio-ruby/rest/voice.rb
twilio-ruby-5.22.1 lib/twilio-ruby/rest/voice.rb
twilio-ruby-5.22.0 lib/twilio-ruby/rest/voice.rb