Class: Chemicalml::Model::Array
- Defined in:
- lib/chemicalml/model/cml_array.rb
Overview
A one-dimensional array of values.
Instance Attribute Summary collapse
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
-
#id ⇒ Object
Returns the value of attribute id.
-
#size ⇒ Object
Returns the value of attribute size.
-
#title ⇒ Object
Returns the value of attribute title.
-
#units ⇒ Object
Returns the value of attribute units.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values:, data_type: nil, units: nil, size: nil, id: nil, title: nil, dict_ref: nil) ⇒ Array
constructor
A new instance of Array.
- #value_attributes ⇒ Object
Methods inherited from Node
#==, #accept, #children, #hash, short_name
Constructor Details
#initialize(values:, data_type: nil, units: nil, size: nil, id: nil, title: nil, dict_ref: nil) ⇒ Array
Returns a new instance of Array.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/chemicalml/model/cml_array.rb', line 10 def initialize(values:, data_type: nil, units: nil, size: nil, id: nil, title: nil, dict_ref: nil) @values = values @data_type = data_type @units = units @size = size @id = id @title = title @dict_ref = dict_ref end |
Instance Attribute Details
#data_type ⇒ Object
Returns the value of attribute data_type.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def data_type @data_type end |
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def dict_ref @dict_ref end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def id @id end |
#size ⇒ Object
Returns the value of attribute size.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def size @size end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def title @title end |
#units ⇒ Object
Returns the value of attribute units.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def units @units end |
#values ⇒ Object
Returns the value of attribute values.
7 8 9 |
# File 'lib/chemicalml/model/cml_array.rb', line 7 def values @values end |
Instance Method Details
#value_attributes ⇒ Object
21 22 23 24 |
# File 'lib/chemicalml/model/cml_array.rb', line 21 def value_attributes { values: values, data_type: data_type, units: units, size: size, id: id, title: title, dict_ref: dict_ref } end |