Class: Chemicalml::Model::PropertyList
- Defined in:
- lib/chemicalml/model/property_list.rb
Overview
Container for Property instances.
Instance Attribute Summary collapse
-
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
-
#id ⇒ Object
Returns the value of attribute id.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(properties: [], id: nil, title: nil, dict_ref: nil) ⇒ PropertyList
constructor
A new instance of PropertyList.
- #value_attributes ⇒ Object
Methods inherited from Node
#==, #accept, #hash, short_name
Constructor Details
#initialize(properties: [], id: nil, title: nil, dict_ref: nil) ⇒ PropertyList
Returns a new instance of PropertyList.
9 10 11 12 13 14 |
# File 'lib/chemicalml/model/property_list.rb', line 9 def initialize(properties: [], id: nil, title: nil, dict_ref: nil) @properties = properties @id = id @title = title @dict_ref = dict_ref end |
Instance Attribute Details
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
7 8 9 |
# File 'lib/chemicalml/model/property_list.rb', line 7 def dict_ref @dict_ref end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/chemicalml/model/property_list.rb', line 7 def id @id end |
#properties ⇒ Object
Returns the value of attribute properties.
7 8 9 |
# File 'lib/chemicalml/model/property_list.rb', line 7 def properties @properties end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/chemicalml/model/property_list.rb', line 7 def title @title end |
Instance Method Details
#children ⇒ Object
16 17 18 |
# File 'lib/chemicalml/model/property_list.rb', line 16 def children properties end |
#value_attributes ⇒ Object
20 21 22 |
# File 'lib/chemicalml/model/property_list.rb', line 20 def value_attributes { properties: properties, id: id, title: title, dict_ref: dict_ref } end |