Class: Ledger::Sdk::Models::Position::Instance

Inherits:
Base::Instance show all
Defined in:
lib/ledger/sdk/models/position.rb

Overview

Represents an individual position instance.

Serves as a chaining link towards Inventory; its own data is only available when pre-loaded by Position#list.

Instance Method Summary collapse

Methods inherited from Base::Instance

association, #data, #initialize

Constructor Details

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

Instance Method Details

#inventories(associated_id = nil) ⇒ Inventory, Inventory::Instance

Access the inventories associated with this position.

Parameters:

  • associated_id (String, Integer, nil) (defaults to: nil)

    ID of a specific inventory, or nil to get the collection

Returns: