Sha256: e8d73ebc5f7558e03bf472a8e9070736513b938101ac5b68eb4d251d0aba5d1d

Contents?: true

Size: 974 Bytes

Versions: 4

Compression:

Stored size: 974 Bytes

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid The unique string that we created to identify the Service
      #   resource.
      # @return [Twilio::REST::Proxy::V1::ServiceInstance] if sid was passed.
      # @return [Twilio::REST::Proxy::V1::ServiceList]
      def services(sid=:unset)
        self.v1.services(sid)
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

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