bancbox_invest 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bancbox_invest.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b10e2b1b48d72ccff0942020bd62843d8b8f6184
|
4
|
+
data.tar.gz: 48b2ce395b9d3e1a00dafebd54a1a8aef9adce9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68bb6d80fc0da381c02425d9493c46bb875ed64dd3921bdd00f11b14540ee7af4793be05de69f63b183e816ba053e65a67739c764dc50fc74af91eb7d12c9935
|
7
|
+
data.tar.gz: 5c3be4b0358e229d0164dccc0267b27fb09e251adf75df1c1dd182691c581cb1822b50787c3a733aa8869fb63b2470d4bb164016451e136662c1c74363279931
|
data/lib/bancbox_invest.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
require 'active_support/core_ext'
|
3
3
|
|
4
|
-
class
|
4
|
+
class BancboxInvest
|
5
5
|
|
6
6
|
attr_accessor :bancbox_api_key, :bancbox_api_secret, :bancbox_api_url
|
7
7
|
|
8
|
-
|
8
|
+
METHODS = %w[create_investor submit_agreement verify_identity create_issuer open_escrow fund_account fund_escrow
|
9
9
|
cge_investor_contr cancel_escrow close_escrow get_escrow_details get_escrow_list get_activity_details get_investor_list
|
10
10
|
get_investor get_issuer_list get_issuer_details disburse_escrow disburse_escrow get_investment_ledger update_investment_ledger
|
11
11
|
freeze_investment_ledger create_proceeds_schedules get_proceeds_schedules cancel_proceeds_schedules withdraw_funds
|
@@ -32,7 +32,7 @@ class Bancbox
|
|
32
32
|
HTTParty.post(bancbox_api_url+url, query: options)
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
METHODS.each do |action|
|
36
36
|
define_method(action) do |argument|
|
37
37
|
@options.merge!(argument)
|
38
38
|
post("/crowd/v0/cfp/#{action.camelize(:lower)}", @options)
|