Class: Rafflesia::FoldSearchMonitoring
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSearchMonitoring
- Defined in:
- lib/rafflesia/proteins/fold_search_monitoring.rb
Constant Summary collapse
- HASH_ATTRS =
{ data_read_metric: :data_read_metric, observations: :observations, runtime_metric: :runtime_metric, scaling_law_id: :scaling_law_id, schema_version: :schema_version }.freeze
Instance Attribute Summary collapse
-
#data_read_metric ⇒ Object
Returns the value of attribute data_read_metric.
-
#observations ⇒ Object
Returns the value of attribute observations.
-
#runtime_metric ⇒ Object
Returns the value of attribute runtime_metric.
-
#scaling_law_id ⇒ Object
Returns the value of attribute scaling_law_id.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSearchMonitoring
constructor
A new instance of FoldSearchMonitoring.
Constructor Details
#initialize(json) ⇒ FoldSearchMonitoring
Returns a new instance of FoldSearchMonitoring.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @data_read_metric = hash[:data_read_metric] @observations = (hash[:observations] || []).map { |item| item ? Rafflesia::FoldSearchMonitoringObservation.new(item) : nil } @runtime_metric = hash[:runtime_metric] @scaling_law_id = hash[:scaling_law_id] @schema_version = hash[:schema_version] end |
Instance Attribute Details
#data_read_metric ⇒ Object
Returns the value of attribute data_read_metric.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 16 def data_read_metric @data_read_metric end |
#observations ⇒ Object
Returns the value of attribute observations.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 16 def observations @observations end |
#runtime_metric ⇒ Object
Returns the value of attribute runtime_metric.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 16 def runtime_metric @runtime_metric end |
#scaling_law_id ⇒ Object
Returns the value of attribute scaling_law_id.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 16 def scaling_law_id @scaling_law_id end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring.rb', line 16 def schema_version @schema_version end |