Class: Cryptopay::Risks
- Inherits:
-
Object
- Object
- Cryptopay::Risks
- Defined in:
- lib/cryptopay/api/risks.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ Risks
constructor
A new instance of Risks.
-
#score(risk_params, _opts = {}) ⇒ RiskResult
Score a coin address.
Constructor Details
#initialize(connection) ⇒ Risks
Returns a new instance of Risks.
8 9 10 |
# File 'lib/cryptopay/api/risks.rb', line 8 def initialize(connection) @connection = connection end |
Instance Method Details
#score(risk_params, _opts = {}) ⇒ RiskResult
Score a coin address
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cryptopay/api/risks.rb', line 16 def score(risk_params, _opts = {}) path = '/api/risks/score' req = Request.new( method: :post, path: path, body_params: risk_params ) connection.call(req, return_type: RiskResult) end |