Class: Belvo::Owner
Overview
An Owner represents the person who has access to a Link and is the owner of all the Accounts inside the Link
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(session) ⇒ Owner
constructor
A new instance of Owner.
-
#retrieve(link:, options: nil) ⇒ Hash
Retrieve owners from an existing link.
Methods inherited from Resource
#clean, #delete, #detail, #list, #resume
Constructor Details
#initialize(session) ⇒ Owner
Returns a new instance of Owner.
225 226 227 228 |
# File 'lib/belvo/resources.rb', line 225 def initialize(session) super(session) @endpoint = 'api/owners/' end |
Instance Method Details
#retrieve(link:, options: nil) ⇒ Hash
Retrieve owners from an existing link
235 236 237 238 239 240 241 242 243 244 |
# File 'lib/belvo/resources.rb', line 235 def retrieve(link:, options: nil) = OwnerOptions.from() body = { link: link, token: .token, save_data: .save_data || true }.merge() body = clean body: body @session.post(@endpoint, body) end |