Class: Zhima::Config
- Inherits:
-
Object
- Object
- Zhima::Config
- Defined in:
- lib/zhima/config.rb
Class Attribute Summary collapse
-
.app_id ⇒ Object
Returns the value of attribute app_id.
-
.private_key ⇒ Object
Returns the value of attribute private_key.
-
.public_key ⇒ Object
Returns the value of attribute public_key.
Class Method Summary collapse
Class Attribute Details
.app_id ⇒ Object
Returns the value of attribute app_id.
4 5 6 |
# File 'lib/zhima/config.rb', line 4 def app_id @app_id end |
.private_key ⇒ Object
Returns the value of attribute private_key.
4 5 6 |
# File 'lib/zhima/config.rb', line 4 def private_key @private_key end |
.public_key ⇒ Object
Returns the value of attribute public_key.
4 5 6 |
# File 'lib/zhima/config.rb', line 4 def public_key @public_key end |
Class Method Details
.configure {|_self| ... } ⇒ Object
6 7 8 |
# File 'lib/zhima/config.rb', line 6 def configure yield self end |
.mech_rsa ⇒ Object
10 11 12 |
# File 'lib/zhima/config.rb', line 10 def mech_rsa @mech_rsa ||= OpenSSL::PKey::RSA.new private_key end |
.zm_rsa ⇒ Object
14 15 16 |
# File 'lib/zhima/config.rb', line 14 def zm_rsa @zm_rsa ||= OpenSSL::PKey::RSA.new public_key end |