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