Sha256: 5947d4a26cd9b44680401b9b8372c0b935487d21628289835db4ab756c98e792

Contents?: true

Size: 1.55 KB

Versions: 15

Compression:

Stored size: 1.55 KB

Contents

# frozen_string_literal: true

require 'net/http'
require 'net/https'
require 'cgi'
require 'openssl'
require 'base64'
require 'forwardable'
require 'time'
require 'json'

require 'twilio-ruby/version' unless defined?(Twilio::VERSION)
require 'rack/twilio_webhook_authentication'

require 'twilio-ruby/util'
require 'twilio-ruby/security/request_validator'
require 'twilio-ruby/util/configuration'

Dir[File.dirname(__FILE__) + '/twilio-ruby/http/**/*.rb'].sort.each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/framework/**/*.rb'].sort.each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/*.rb'].sort.each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/**/*.rb'].sort.each do |file|
  require file
end
Dir[File.dirname(__FILE__) + '/twilio-ruby/compatibility/**/*.rb'].sort.each do |file|
  require file
end

module Twilio
  extend SingleForwardable

  autoload :JWT, File.join(File.dirname(__FILE__), 'twilio-ruby', 'jwt', 'jwt.rb')
  autoload :TwiML, File.join(File.dirname(__FILE__), 'twilio-ruby', 'twiml', 'twiml.rb')

  def_delegators :configuration, :account_sid, :auth_token, :http_client, :region, :edge

  ##
  # Pre-configure with account SID and auth token so that you don't need to
  # pass them to various initializers each time.
  def self.configure(&block)
    yield configuration
  end

  ##
  # Returns an existing or instantiates a new configuration object.
  def self.configuration
    @configuration ||= Util::Configuration.new
  end

  private_class_method :configuration
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
twilio-ruby-5.42.0 lib/twilio-ruby.rb
twilio-ruby-5.41.0 lib/twilio-ruby.rb
twilio-ruby-5.40.4 lib/twilio-ruby.rb
twilio-ruby-5.40.3 lib/twilio-ruby.rb
twilio-ruby-5.40.2 lib/twilio-ruby.rb
twilio-ruby-5.40.1 lib/twilio-ruby.rb
twilio-ruby-5.40.0 lib/twilio-ruby.rb
twilio-ruby-5.39.3 lib/twilio-ruby.rb
twilio-ruby-5.39.2 lib/twilio-ruby.rb
twilio-ruby-5.39.1 lib/twilio-ruby.rb
twilio-ruby-5.39.0 lib/twilio-ruby.rb
twilio-ruby-5.38.0 lib/twilio-ruby.rb
twilio-ruby-5.37.0 lib/twilio-ruby.rb
twilio-ruby-5.36.0 lib/twilio-ruby.rb
twilio-ruby-5.35.0 lib/twilio-ruby.rb