class Belvo::Owner
An Owner
represents the person who has access to a Link
and is the owner of all the Accounts inside the Link
Public Class Methods
new(session)
click to toggle source
Calls superclass method
Belvo::Resource::new
# File lib/belvo/resources.rb, line 214 def initialize(session) super(session) @endpoint = 'owners/' end
Public Instance Methods
retrieve(link:, options: nil)
click to toggle source
Retrieve owners from an existing link @param link [String] Link
UUID @param options [OwnerOptions] Configurable properties @return [Hash] created owners details @raise [RequestError] If response code is different than 2XX
# File lib/belvo/resources.rb, line 224 def retrieve(link:, options: nil) options = OwnerOptions.from(options) body = { link: link, token: options.token, save_data: options.save_data || true }.merge(options) body = clean body: body @session.post(@endpoint, body) end