Sha256: 09a4d96ee1ad55110d8989a8db460ea681c01f34b6b75d3de6a8cb399dd763dc

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

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

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

        ##
        # @param [String] sid The unique SID identifier of Verification Service Instance.
        # @return [Twilio::REST::Verify::V1::ServiceContext] if sid was passed.
        # @return [Twilio::REST::Verify::V1::ServiceList]
        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::Verify::V1>'
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
twilio-ruby-5.22.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.21.2 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.21.1 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.21.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.20.1 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.20.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.19.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.18.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.17.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.16.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.15.2 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.15.1 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.15.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.14.1 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.14.0 lib/twilio-ruby/rest/verify/v1.rb
twilio-ruby-5.13.0 lib/twilio-ruby/rest/verify/v1.rb