Sha256: 3619c64c85cbae6191501462a369c07a6f44f8e3ae45331fb8e08f96945fcf54

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

# frozen_string_literal: true

$:.unshift File.dirname(__FILE__)

require 'zoom/version'
require 'zoom/constants/constants'
require 'zoom/params'
require 'zoom/utils'
require 'zoom/actions/account'
require 'zoom/actions/billing'
require 'zoom/actions/dashboard'
require 'zoom/actions/groups'
require 'zoom/actions/m323_device'
require 'zoom/actions/meeting'
require 'zoom/actions/recording'
require 'zoom/actions/report'
require 'zoom/actions/roles'
require 'zoom/actions/token'
require 'zoom/actions/user'
require 'zoom/actions/webinar'
require 'zoom/actions/phone'
require 'zoom/actions/im/chat'
require 'zoom/actions/im/group'
require 'zoom/actions/sip_audio'
require 'zoom/client'
require 'zoom/error'

module Zoom
  class << self
    attr_accessor :configuration

    def new
      @configuration ||= Configuration.new
      Zoom::Client::JWT.new(
        api_key: @configuration.api_key,
        api_secret: @configuration.api_secret,
        timeout: @configuration.timeout
      )
    end

    def configure
      @configuration ||= Configuration.new
      yield(@configuration)
    end
  end

  class Configuration
    attr_accessor :api_key, :api_secret, :timeout, :access_token

    def initialize
      @api_key = @api_secret = 'xxx'
      @access_token = nil
      @timeout = 15
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoom_rb-0.11.0 lib/zoom_rb.rb