Class: Belvo::RiskInsights
Overview
RiskInsights contain relevant metrics about the credit risk of a Link
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(session) ⇒ RiskInsights
constructor
A new instance of RiskInsights.
-
#retrieve(link:, options: nil) ⇒ Hash
Retrieve risk insights information from a specific banking link.
Methods inherited from Resource
#clean, #delete, #detail, #list, #resume
Constructor Details
#initialize(session) ⇒ RiskInsights
Returns a new instance of RiskInsights.
390 391 392 393 |
# File 'lib/belvo/resources.rb', line 390 def initialize(session) super(session) @endpoint = 'api/risk-insights/' end |
Instance Method Details
#retrieve(link:, options: nil) ⇒ Hash
Retrieve risk insights information from a specific banking link
400 401 402 403 404 405 406 407 408 |
# File 'lib/belvo/resources.rb', line 400 def retrieve(link:, options: nil) = RiskInsightsOptions.from() body = { link: link, save_data: .save_data || true }.merge() body = clean body: body @session.post(@endpoint, body) end |