Class: Rafflesia::FoldCollectionCalibrateData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_collection_calibrate_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate_benchmark: :candidate_benchmark,
  candidate_benchmark_object: :candidate_benchmark_object,
  candidate_calibration_object: :candidate_calibration_object,
  candidate_calibration_object_id: :candidate_calibration_object_id,
  candidate_calibration_profile: :candidate_calibration_profile,
  collection_id: :collection_id,
  current_benchmark: :current_benchmark,
  current_calibration_object_id: :current_calibration_object_id,
  current_calibration_profile: :current_calibration_profile,
  current_calibration_stale_reasons: :current_calibration_stale_reasons,
  is_current_calibration_stale: :is_current_calibration_stale,
  promote_requested: :promote_requested,
  promoted: :promoted,
  promotion_passed: :promotion_passed,
  promotion_reasons: :promotion_reasons,
  published_calibration_object_id: :published_calibration_object_id,
  query_count: :query_count,
  ref: :ref,
  segment_count: :segment_count,
  segment_refs: :segment_refs,
  snapshot_ref: :snapshot_ref,
  telemetry_object: :telemetry_object,
  telemetry_object_id: :telemetry_object_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionCalibrateData

Returns a new instance of FoldCollectionCalibrateData.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_benchmark = hash[:candidate_benchmark] ? Rafflesia::FoldCollectionBenchmarkSummary.new(hash[:candidate_benchmark]) : nil
  @candidate_benchmark_object = hash[:candidate_benchmark_object] ? Rafflesia::ObjectRef.new(hash[:candidate_benchmark_object]) : nil
  @candidate_calibration_object = hash[:candidate_calibration_object] ? Rafflesia::ObjectRef.new(hash[:candidate_calibration_object]) : nil
  @candidate_calibration_object_id = hash[:candidate_calibration_object_id]
  @candidate_calibration_profile = hash[:candidate_calibration_profile] ? Rafflesia::FoldCollectionCalibrationProfile.new(hash[:candidate_calibration_profile]) : nil
  @collection_id = hash[:collection_id]
  @current_benchmark = hash[:current_benchmark] ? Rafflesia::FoldCollectionBenchmarkSummary.new(hash[:current_benchmark]) : nil
  @current_calibration_object_id = hash[:current_calibration_object_id]
  @current_calibration_profile = hash[:current_calibration_profile] ? Rafflesia::FoldCollectionCalibrationProfile.new(hash[:current_calibration_profile]) : nil
  @current_calibration_stale_reasons = (hash[:current_calibration_stale_reasons] || [])
  @is_current_calibration_stale = hash[:is_current_calibration_stale]
  @promote_requested = hash[:promote_requested]
  @promoted = hash[:promoted]
  @promotion_passed = hash[:promotion_passed]
  @promotion_reasons = (hash[:promotion_reasons] || [])
  @published_calibration_object_id = hash[:published_calibration_object_id]
  @query_count = hash[:query_count]
  @ref = hash[:ref]
  @segment_count = hash[:segment_count]
  @segment_refs = (hash[:segment_refs] || [])
  @snapshot_ref = hash[:snapshot_ref]
  @telemetry_object = hash[:telemetry_object] ? Rafflesia::ObjectRef.new(hash[:telemetry_object]) : nil
  @telemetry_object_id = hash[:telemetry_object_id]
end

Instance Attribute Details

#candidate_benchmarkObject

Returns the value of attribute candidate_benchmark.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def candidate_benchmark
  @candidate_benchmark
end

#candidate_benchmark_objectObject

Returns the value of attribute candidate_benchmark_object.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def candidate_benchmark_object
  @candidate_benchmark_object
end

#candidate_calibration_objectObject

Returns the value of attribute candidate_calibration_object.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def candidate_calibration_object
  @candidate_calibration_object
end

#candidate_calibration_object_idObject

Returns the value of attribute candidate_calibration_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def candidate_calibration_object_id
  @candidate_calibration_object_id
end

#candidate_calibration_profileObject

Returns the value of attribute candidate_calibration_profile.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def candidate_calibration_profile
  @candidate_calibration_profile
end

#collection_idObject

Returns the value of attribute collection_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def collection_id
  @collection_id
end

#current_benchmarkObject

Returns the value of attribute current_benchmark.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def current_benchmark
  @current_benchmark
end

#current_calibration_object_idObject

Returns the value of attribute current_calibration_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def current_calibration_object_id
  @current_calibration_object_id
end

#current_calibration_profileObject

Returns the value of attribute current_calibration_profile.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def current_calibration_profile
  @current_calibration_profile
end

#current_calibration_stale_reasonsObject

Returns the value of attribute current_calibration_stale_reasons.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def current_calibration_stale_reasons
  @current_calibration_stale_reasons
end

#is_current_calibration_staleObject

Returns the value of attribute is_current_calibration_stale.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def is_current_calibration_stale
  @is_current_calibration_stale
end

#promote_requestedObject

Returns the value of attribute promote_requested.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def promote_requested
  @promote_requested
end

Returns the value of attribute promoted.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def promoted
  @promoted
end

#promotion_passedObject

Returns the value of attribute promotion_passed.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def promotion_passed
  @promotion_passed
end

#promotion_reasonsObject

Returns the value of attribute promotion_reasons.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def promotion_reasons
  @promotion_reasons
end

#published_calibration_object_idObject

Returns the value of attribute published_calibration_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def published_calibration_object_id
  @published_calibration_object_id
end

#query_countObject

Returns the value of attribute query_count.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def query_count
  @query_count
end

#refObject

Returns the value of attribute ref.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def ref
  @ref
end

#segment_countObject

Returns the value of attribute segment_count.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def segment_count
  @segment_count
end

#segment_refsObject

Returns the value of attribute segment_refs.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def segment_refs
  @segment_refs
end

#snapshot_refObject

Returns the value of attribute snapshot_ref.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def snapshot_ref
  @snapshot_ref
end

#telemetry_objectObject

Returns the value of attribute telemetry_object.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def telemetry_object
  @telemetry_object
end

#telemetry_object_idObject

Returns the value of attribute telemetry_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_collection_calibrate_data.rb', line 34

def telemetry_object_id
  @telemetry_object_id
end