Class: Increase::Resource
- Inherits:
-
Object
- Object
- Increase::Resource
- Defined in:
- lib/increase/resource.rb
Direct Known Subclasses
AccountNumbers, AccountStatements, AccountTransfers, Accounts, AchPrenotifications, AchTransfers, CardDisputes, CardProfiles, Cards, CheckDeposits, CheckTransfers, DeclinedTransactions, DigitalWalletTokens, Documents, Entities, EventSubscriptions, Events, ExternalAccounts, Files, Groups, InboundAchTransferReturns, InboundWireDrawdownRequests, Limits, OauthConnections, PendingTransactions, RealTimeDecisions, RoutingNumbers, Transactions, WireDrawdownRequests, WireTransfers
Constant Summary collapse
- PAGINATION_MAX_LIMIT =
100
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client: nil) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client: nil) ⇒ Resource
Returns a new instance of Resource.
8 9 10 11 12 13 |
# File 'lib/increase/resource.rb', line 8 def initialize(client: nil) if instance_of?(Resource) raise NotImplementedError, "Resource is an abstract class. You should perform actions on its subclasses (Accounts, Transactions, Card, etc.)" end @client = client || Increase.default_client end |
Class Method Details
.resource_url ⇒ Object
23 24 25 |
# File 'lib/increase/resource.rb', line 23 def self.resource_url "/#{self::API_NAME}" end |