Class: Ledger::Sdk::Models::Container::Instance
- Inherits:
-
Base::Instance
- Object
- Base::Instance
- Ledger::Sdk::Models::Container::Instance
- Defined in:
- lib/ledger/sdk/models/container.rb
Overview
Represents an individual container instance.
Has associations to Account, Position, Fee and FeeExclusion allowing navigation to the accounts, positions, fees and fee exclusions attached to this container.
Instance Method Summary collapse
-
#accounts(associated_id = nil) ⇒ Account, Account::Instance
Access the accounts associated with this container.
-
#balances(name) ⇒ Balance
Access the balances of this container for a given balance name.
-
#fee_exclusions(associated_id = nil) ⇒ FeeExclusion, FeeExclusion::Instance
Access the fee-base exclusions attached to this container.
-
#fees(associated_id = nil) ⇒ Fee, Fee::Instance
Access the fees attached to this container.
-
#positions ⇒ Position
Access every position of this container in one call (each account's displayable positions), via
/containers/<id>/positions. -
#update(attributes) ⇒ Hash
Updates this container's attributes.
Methods inherited from Base::Instance
association, #data, #initialize
Constructor Details
This class inherits a constructor from Ledger::Sdk::Models::Base::Instance
Instance Method Details
#accounts(associated_id = nil) ⇒ Account, Account::Instance
Access the accounts associated with this container.
#balances(name) ⇒ Balance
Access the balances of this container for a given balance name.
#fee_exclusions(associated_id = nil) ⇒ FeeExclusion, FeeExclusion::Instance
Access the fee-base exclusions attached to this container.
#fees(associated_id = nil) ⇒ Fee, Fee::Instance
Access the fees attached to this container.
#positions ⇒ Position
Access every position of this container in one call (each account's
displayable positions), via /containers/<id>/positions.
#update(attributes) ⇒ Hash
Updates this container's attributes. Alongside fees and fee-exclusions management, this is one of the SDK's few write operations — most of the SDK remains read-only. Used by folio to persist the container's asset manager (+manager_id+, a mosaic bank id). Updates this container's attributes. This is the SDK's ONE write operation — everything else is read-only. Used by folio to persist the container's asset manager (+manager_id+, a mosaic bank id).