Class: Ledger::Sdk::Models::Label

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

Overview

Represents the labels from the Ledger API.

Labels are global and read-only: they are not nested under a container. Each one belongs to a group and is returned as { 'id', 'name', 'group' => { 'id', 'name' } }. Passing fees: true to Base#list restricts the result to the "Fees" group, i.e. the labels a movement can be reclassified with.

Examples:

List the labels of the Fees group

Ledger::Sdk.Label.list { { fees: true } }

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