Sha256: 9176695a3034b58b26038bbc8819c14b8b1221fb57b39fbc2124a0c3daf4e709

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

require_relative "aliyun/version"
require_relative "aliyun/connector/roa_client"
require_relative "aliyun/connector/rpc_client"
require_relative "aliyun/dysms"
require_relative "aliyun/dyvms"

module Aliyun
  class Error < StandardError; end

  # 模块单例方法
  class << self
    attr_accessor :access_key_id, :access_key_secret
    def config
      yield self
    end
  end
end

# 加载模块,自动初始化的常量
RPCClient = Aliyun::Connector::RPCClient
ROAClient = Aliyun::Connector::ROAClient
Dysms = Aliyun::Dysms
Dyvms = Aliyun::Dyvms

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aliyun-rails-0.1.21 lib/aliyun-rails.rb
aliyun-rails-0.1.20 lib/aliyun-rails.rb
aliyun-rails-0.1.19 lib/aliyun-rails.rb
aliyun-rails-0.1.18 lib/aliyun-rails.rb
aliyun-rails-0.1.14 lib/aliyun-rails.rb