Sha256: 022a43b6241a31747b4dfae8138a0df8ed89835ffef6bd33368867e94c5e2887

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

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

module Twilio
  module REST
    class Preview
      class Sync < Version
        ##
        # Initialize the Sync version of Preview
        def initialize(domain)
          super
          @version = 'Sync'
          @services = nil
        end

        def services(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @services ||= ServiceList.new self
          else
            ServiceContext.new(self, sid)
          end
        end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc26 lib/twilio-ruby/rest/preview/sync.rb
twilio-ruby-5.0.0.rc25 lib/twilio-ruby/rest/preview/sync.rb