Class: AliyunNlpRuby::Configuration
- Inherits:
-
Object
- Object
- AliyunNlpRuby::Configuration
- Defined in:
- lib/aliyun_nlp_ruby/configuration.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
-
#format ⇒ Object
Returns the value of attribute format.
-
#region_id ⇒ Object
Returns the value of attribute region_id.
-
#service_code ⇒ Object
Returns the value of attribute service_code.
-
#signature_method ⇒ Object
Returns the value of attribute signature_method.
-
#signature_version ⇒ Object
Returns the value of attribute signature_version.
-
#tokenizer_id ⇒ Object
Returns the value of attribute tokenizer_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 7 def initialize @access_key_secret = '' @access_key_id = '' @format = 'JSON' @signature_method = 'HMAC-SHA1' @signature_version = '1.0' @version = '2020-06-29' @service_code = 'alinlp' @tokenizer_id = 'GENERAL_CHN' end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def access_key_id @access_key_id end |
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def access_key_secret @access_key_secret end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def format @format end |
#region_id ⇒ Object
Returns the value of attribute region_id.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def region_id @region_id end |
#service_code ⇒ Object
Returns the value of attribute service_code.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def service_code @service_code end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def signature_method @signature_method end |
#signature_version ⇒ Object
Returns the value of attribute signature_version.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def signature_version @signature_version end |
#tokenizer_id ⇒ Object
Returns the value of attribute tokenizer_id.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def tokenizer_id @tokenizer_id end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3 def version @version end |