Class: Ledger::Sdk::Models::Base Abstract
- Inherits:
-
Object
- Object
- Ledger::Sdk::Models::Base
- Defined in:
- lib/ledger/sdk/models/base.rb
Overview
This class is abstract.
Subclass and implement #uri
Abstract base class for all Ledger API models.
Provides the common collection operation: listing resources. The SDK is read-only, so collections expose no create/update/delete. Subclasses must implement the private #uri method to define the API endpoint.
Direct Known Subclasses
Account, Balance, Container, Fee, FeeExclusion, FeeKind, Inventory, Movement, Position
Defined Under Namespace
Classes: Instance
Instance Method Summary collapse
-
#initialize(extra = {}) ⇒ Base
constructor
Initializes a resource collection.
-
#list ⇒ Array<Instance>
Lists all resources of this type.
Constructor Details
#initialize(extra = {}) ⇒ Base
Initializes a resource collection.
Instance Method Details
#list ⇒ Array<Instance>
Lists all resources of this type.