Class: AsciiChem::ModelAdapter::Translation

Inherits:
Struct
  • Object
show all
Defined in:
lib/asciichem/model_adapter.rb

Overview

Result of a translation that also exposes the per-atom mapping (canonical_atom_id => AsciiChem::Model::Atom) and the per-molecule group structure (molecule_id => Array). Used by callers that need to track per-atom side data through the canonical pipeline (e.g. the CML extension namespace).

Instance Attribute Summary collapse

Instance Attribute Details

#atom_mappingObject

Returns the value of attribute atom_mapping

Returns:

  • (Object)

    the current value of atom_mapping



32
33
34
# File 'lib/asciichem/model_adapter.rb', line 32

def atom_mapping
  @atom_mapping
end

#documentObject

Returns the value of attribute document

Returns:

  • (Object)

    the current value of document



32
33
34
# File 'lib/asciichem/model_adapter.rb', line 32

def document
  @document
end

#groupsObject

Returns the value of attribute groups

Returns:

  • (Object)

    the current value of groups



32
33
34
# File 'lib/asciichem/model_adapter.rb', line 32

def groups
  @groups
end