Sha256: 1d04f4da6ecca17e27c3af8987d6113965175cb1719e424bd502c58a601780d0
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true module BridgeBankin class Account < BridgeObject RESOURCE_TYPE = "account" class << self include API::Resource def list(access_token:, **params) protected_resource(access_token) do data = api_client.get("/v2/accounts", params) convert_to_bridge_object(data) end end def find(id:, access_token:, **params) protected_resource(access_token) do data = api_client.get("/v2/accounts/#{id}", params) convert_to_bridge_object(data) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bridge_bankin-0.1.0 | lib/bridge_bankin/account.rb |