Class: Mosaic::Sdk::Models::Dna::Instance

Inherits:
Base::Instance show all
Defined in:
lib/mosaic/sdk/models/dna.rb

Overview

Represents an individual DNA instance.

Has an association to Clone allowing navigation to the clones attached to this DNA.

Instance Method Summary collapse

Methods inherited from Base::Instance

association, #data, #initialize

Constructor Details

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

Instance Method Details

#clones(associated_id = nil) ⇒ Clone, Clone::Instance

Access the clones associated with this DNA.

Parameters:

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

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

Returns:

  • (Clone)

    the clone collection (if no ID)

  • (Clone::Instance)

    a clone instance (if ID provided)