Class: ZhimaAuth::Configuration
- Inherits:
-
Object
- Object
- ZhimaAuth::Configuration
- Defined in:
- lib/zhima_auth/configuration.rb
Instance Attribute Summary collapse
-
#admittance_score ⇒ Object
Returns the value of attribute admittance_score.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#biz_code ⇒ Object
Returns the value of attribute biz_code.
-
#charset ⇒ Object
Returns the value of attribute charset.
-
#format ⇒ Object
Returns the value of attribute format.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#sign_type ⇒ Object
Returns the value of attribute sign_type.
-
#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.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/zhima_auth/configuration.rb', line 5 def initialize @app_id = "app_id" @private_key = "private_key" @sign_type = "RSA2" @format = "JSON" @charset = "utf-8" @version = "1.0" @biz_code = "FACE" @admittance_score = 650 end |
Instance Attribute Details
#admittance_score ⇒ Object
Returns the value of attribute admittance_score.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def admittance_score @admittance_score end |
#app_id ⇒ Object
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def app_id @app_id end |
#biz_code ⇒ Object
Returns the value of attribute biz_code.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def biz_code @biz_code end |
#charset ⇒ Object
Returns the value of attribute charset.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def charset @charset end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def format @format end |
#private_key ⇒ Object
Returns the value of attribute private_key.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def private_key @private_key end |
#sign_type ⇒ Object
Returns the value of attribute sign_type.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def sign_type @sign_type end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/zhima_auth/configuration.rb', line 3 def version @version end |