Sha256: e724a833ea03cb3d501462b5be74a8646f40850b72292d67c5a9ca728e04bd7c

Contents?: true

Size: 934 Bytes

Versions: 6

Compression:

Stored size: 934 Bytes

Contents

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

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

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

        # Versions
        @v1 = nil
      end

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

      ##
      # @param [String] sid A unique identifier for this service instance.
      # @return [Twilio::REST::Sync::V1::ServiceInstance] if sid was passed.
      # @return [Twilio::REST::Sync::V1::ServiceList]
      def services(sid=:unset)
        self.v1.services(sid)
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twilio-ruby-5.25.4 lib/twilio-ruby/rest/sync.rb
twilio-ruby-5.25.3 lib/twilio-ruby/rest/sync.rb
twilio-ruby-5.25.2 lib/twilio-ruby/rest/sync.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/sync.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/sync.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/sync.rb