Method: Belvo::APISession#delete

Defined in:
lib/belvo/http.rb

#delete(path, id) ⇒ Boolean

Delete existing resource

Parameters:

  • path (String)

    API endpoint

  • id (String)

    Resource UUID

Returns:

  • (Boolean)

    true if resource is successfully deleted else false



166
167
168
169
170
# File 'lib/belvo/http.rb', line 166

def delete(path, id)
  resource_path = format('%<path>s%<id>s/', path: path, id: id)
  response = @session.delete(resource_path)
  response.success?
end