Class: RockFintech::Client
- Inherits:
-
Object
- Object
- RockFintech::Client
- Defined in:
- lib/rock_fintech/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(options_arg) ⇒ Client
constructor
A new instance of Client.
- #verify_data?(data) ⇒ Boolean
Constructor Details
#initialize(options_arg) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rock_fintech/client.rb', line 9 def initialize() = Utils.symbolize_keys() @config = { uri: [:url], rft_token: [:rft_token], rft_org: [:rft_org], rft_key: [:rft_key], rft_secret: [:rft_secret], private_key: OpenSSL::PKey::RSA.new([:private_key]), public_key: OpenSSL::PKey::RSA.new([:public_key]), } # 自动 include api 下的模块 recursive_include_api('RockFintech::Api') # 自动 include form 下的模块 recursive_include_api('RockFintech::Form') end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/rock_fintech/client.rb', line 7 def config @config end |