Sha256: acef32ca9d9d6d6867800bdc63371f8a6d49344b0db807c62e22f26e5e4f2bf8

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

module Aliyun::CloudSms
  module Configure
    @@action = "SendSms"
    @@format = "JSON"
    @@region_id = "cn-hangzhou"
    @@signature_method = "HMAC-SHA1"
    @@signature_version = "1.0"
    @@sms_version = "2017-05-25"
    @@access_key_id = ""
    @@access_key_secret = ""
    @@sign_name = ""


    def configure
      yield self if block_given?
    end

    def access_key_id=(id)
      @@access_key_id = id
    end

    def access_key_secret=(secret)
      @@access_key_secret = secret
    end

    def sign_name=(sign_name)
      @@sign_name = sign_name
    end

    def action=(action)
      @@action = action
    end

    def action
      @@action
    end

    def format
      @@format
    end

    def region_id
      @@region_id
    end

    def signature_method
      @@signature_method
    end

    def signature_version
      @@signature_version
    end

    def sms_version
      @@sms_version
    end

    def access_key_id
      @@access_key_id
    end

    def access_key_secret
      @@access_key_secret
    end

    def sign_name
      @@sign_name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aliyun-cloud_sms-0.1.1 lib/aliyun/cloud_sms/configure.rb
aliyun-cloud_sms-0.1.0 lib/aliyun/cloud_sms/configure.rb