Class: Okcoin::Base
- Inherits:
-
Object
- Object
- Okcoin::Base
- Extended by:
- ApiDefineTool
- Includes:
- HttpUtils
- Defined in:
- lib/okcoin/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(url: 'https://www.okcoin.cn/api/', api_key:, secret_key:) ⇒ Base
constructor
A new instance of Base.
Methods included from ApiDefineTool
define_get_api, define_post_api
Methods included from HttpUtils
Constructor Details
#initialize(url: 'https://www.okcoin.cn/api/', api_key:, secret_key:) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/okcoin/base.rb', line 7 def initialize(url: 'https://www.okcoin.cn/api/', api_key:, secret_key:) @url = url @api_key = api_key @secret_key = secret_key end |