Sha256: a3eac556c4cf7e702e224d520cbf24d432bef43637767b577d6ebf04110d3651

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

require 'virtus'
require 'logger'
require 'json'
require 'faraday'

require 'telegram/bot/types'
require 'telegram/bot/exceptions'
require 'telegram/bot/api'
require 'telegram/bot/null_logger'
require 'telegram/bot/client'
require 'telegram/bot/version'
require 'telegram/bot/configuration'

module Telegram
  module Bot
    class << self
      attr_writer :configuration
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-0.19.2 lib/telegram/bot.rb
telegram-bot-ruby-0.19.1 lib/telegram/bot.rb
telegram-bot-ruby-0.19.0 lib/telegram/bot.rb