Sha256: 4b906ca211f4974f08ffcc0bbbb13c4a42f5e2cbcc499e9fd88e49928154333c

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

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

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

        ##
        # @param [String] sid A 34 character string that uniquely identifies this Service.
        # @return [Twilio::REST::Preview::Authy::ServiceContext] if sid was passed.
        # @return [Twilio::REST::Preview::Authy::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::Preview::Authy>'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-5.16.0 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.15.2 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.15.1 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.15.0 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.14.1 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.14.0 lib/twilio-ruby/rest/preview/authy.rb
twilio-ruby-5.13.0 lib/twilio-ruby/rest/preview/authy.rb