class BridgeBankin::Category
Category
resource
Constants
- RESOURCE_TYPE
Public Class Methods
find(id:, **params)
click to toggle source
Retrieve a single category
@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 [Category] the requested category
# File lib/bridge_bankin/category.rb, line 33 def find(id:, **params) data = api_client.get("/v2/categories/#{id}", **params) convert_to_bridge_object(**data) end
list(**params)
click to toggle source
List all categories supported by the Bridge API
@param [Hash] params any params that might be required (or optional) to communicate with the API
@return [Array<Category>] the supported categories list
# File lib/bridge_bankin/category.rb, line 20 def list(**params) data = api_client.get("/v2/categories", **params) convert_to_bridge_object(**data) end