Module: Fcoin::Request
- Included in:
- Client
- Defined in:
- lib/fcoin/request.rb
Constant Summary collapse
- BaseURL =
"https://api.fcoin.com/v2/"
Instance Method Summary collapse
- #configuration(key, secret) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
Instance Method Details
#configuration(key, secret) ⇒ Object
10 11 12 13 |
# File 'lib/fcoin/request.rb', line 10 def configuration(key, secret) @key = key @secret = secret end |
#get(path, options = {}) ⇒ Object
15 16 17 |
# File 'lib/fcoin/request.rb', line 15 def get(path, ={}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
19 20 21 |
# File 'lib/fcoin/request.rb', line 19 def post(path, ={}) request(:post, path, ) end |