Module: AliyunGreen
- Defined in:
- lib/aliyun_green/client.rb,
lib/aliyun_green.rb,
lib/aliyun_green/text.rb,
lib/aliyun_green/error.rb,
lib/aliyun_green/image.rb,
lib/aliyun_green/version.rb,
lib/aliyun_green/configuration.rb
Overview
TODO: validate config TODO: 支持clientInfo
Defined Under Namespace
Modules: Image, Text Classes: Client, Configuration, Error
Constant Summary collapse
- VERSION =
"0.1.4"
Instance Attribute Summary collapse
-
#configuration ⇒ Object
writeonly
Sets the attribute configuration.
Class Method Summary collapse
Instance Attribute Details
#configuration=(value) ⇒ Object (writeonly)
Sets the attribute configuration
10 11 12 |
# File 'lib/aliyun_green.rb', line 10 def configuration=(value) @configuration = value end |
Class Method Details
.client ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/aliyun_green.rb', line 20 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 |
.configuration ⇒ Object
12 13 14 |
# File 'lib/aliyun_green.rb', line 12 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
16 17 18 |
# File 'lib/aliyun_green.rb', line 16 def self.configure yield(configuration) end |