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