Class: AliyunNlpRuby::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun_nlp_ruby/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_idObject

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_secretObject

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

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3

def format
  @format
end

#region_idObject

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_codeObject

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_methodObject

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_versionObject

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_idObject

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

#versionObject

Returns the value of attribute version.



3
4
5
# File 'lib/aliyun_nlp_ruby/configuration.rb', line 3

def version
  @version
end