Sha256: 98b53a104c78459bfdcd0a462c904b7738ac1dd6448dba844a58a8e498c524a4

Contents?: true

Size: 1.03 KB

Versions: 31

Compression:

Stored size: 1.03 KB

Contents

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

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

        ##
        # @param [String] sid The Twilio-provided string that uniquely identifies the Fax
        #   resource to fetch.
        # @return [Twilio::REST::Fax::V1::FaxContext] if sid was passed.
        # @return [Twilio::REST::Fax::V1::FaxList]
        def faxes(sid=:unset)
          if sid.nil?
              raise ArgumentError, 'sid cannot be nil'
          end
          if sid == :unset
              @faxes ||= FaxList.new self
          else
              FaxContext.new(self, sid)
          end
        end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
twilio-ruby-5.67.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.67.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.66.2 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.66.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.66.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.65.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.65.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.64.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.63.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.63.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.62.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.61.2 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.61.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.61.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.60.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.59.0 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.58.3 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.58.2 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.58.1 lib/twilio-ruby/rest/fax/v1.rb
twilio-ruby-5.58.0 lib/twilio-ruby/rest/fax/v1.rb