Class: Ledger::Sdk::Models::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/ledger/sdk/models/account.rb

Overview

Represents the collection of accounts from the Ledger API.

Accounts are always accessed in the context of a container via /containers/:container_id/accounts.

Examples:

List accounts for a container

accounts = Ledger::Sdk.Container(42).accounts.list

Access a specific account

 = Ledger::Sdk.Container(42).accounts(7)
.data # => { 'id' => 7, 'kind' => 'cash', ... }

Defined Under Namespace

Classes: Instance

Method Summary

Methods inherited from Base

#initialize, #list

Constructor Details

This class inherits a constructor from Ledger::Sdk::Models::Base