Sha256: 63a018407d07563f0c2b580157f58361c8b849e730758754aa40655cb551d18c

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true
require_relative "aliyun_green/version"
require_relative "aliyun_green/text"
require_relative "aliyun_green/error"
require_relative "aliyun_green/client"
require_relative "aliyun_green/configuration"

module AliyunGreen
  attr_writer :configuration

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

  def self.configure
    yield(configuration)
  end

  def self.client
    AliyunGreen::Client.new(
      endpoint: 'cn-beijing',
      api_version: '2018-05-09',
      access_key_id: AliyunGreen.configuration.access_key_id,
      access_key_secret: AliyunGreen.configuration.access_key_secret,
      enable_internal: AliyunGreen.configuration.enable_internal
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aliyun_green-0.1.1 lib/aliyun_green.rb