class BridgeBankin::Bank

Bank resource

Constants

RESOURCE_TYPE

Public Class Methods

find(id:, **params) click to toggle source

Retrieve a single bank

@param [Integer] id the id of the requested resource @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [Bank] the requested bank

# File lib/bridge_bankin/bank.rb, line 33
def find(id:, **params)
  data = api_client.get("/v2/banks/#{id}", **params)
  convert_to_bridge_object(**data)
end
list(**params) click to toggle source

List all banks supported by the Bridge API

@param [Hash] params any params that might be required (or optional) to communicate with the API

@return [Array<Bank>] the supported banks list

# File lib/bridge_bankin/bank.rb, line 20
def list(**params)
  data = api_client.get("/v2/banks", **params)
  convert_to_bridge_object(**data)
end