Class: Chemicalml::Model::BondStereo
- Defined in:
- lib/chemicalml/model/bond_stereo.rb
Overview
Bond stereochemistry. CML <bondStereo> element. Carries
either atom_refs2 (for W/H wedge/hatch) or atom_refs4
(for C/T cis/trans). The value is the convention letter:
W, H, C, T, or other (with a dict_ref).
Instance Attribute Summary collapse
-
#atom_refs2 ⇒ Object
Returns the value of attribute atom_refs2.
-
#atom_refs4 ⇒ Object
Returns the value of attribute atom_refs4.
-
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, atom_refs2: nil, atom_refs4: nil, dict_ref: nil) ⇒ BondStereo
constructor
A new instance of BondStereo.
- #value_attributes ⇒ Object
Methods inherited from Node
#==, #accept, #children, #hash, short_name
Constructor Details
#initialize(value:, atom_refs2: nil, atom_refs4: nil, dict_ref: nil) ⇒ BondStereo
Returns a new instance of BondStereo.
12 13 14 15 16 17 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 12 def initialize(value:, atom_refs2: nil, atom_refs4: nil, dict_ref: nil) @value = value @atom_refs2 = atom_refs2 @atom_refs4 = atom_refs4 @dict_ref = dict_ref end |
Instance Attribute Details
#atom_refs2 ⇒ Object
Returns the value of attribute atom_refs2.
10 11 12 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 10 def atom_refs2 @atom_refs2 end |
#atom_refs4 ⇒ Object
Returns the value of attribute atom_refs4.
10 11 12 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 10 def atom_refs4 @atom_refs4 end |
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
10 11 12 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 10 def dict_ref @dict_ref end |
#value ⇒ Object
Returns the value of attribute value.
10 11 12 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 10 def value @value end |
Instance Method Details
#value_attributes ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/chemicalml/model/bond_stereo.rb', line 19 def value_attributes { value: value, atom_refs2: atom_refs2, atom_refs4: atom_refs4, dict_ref: dict_ref } end |