Class: Rafflesia::FoldIndexRoutingShardSelectionMetric

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

Constant Summary collapse

HASH_ATTRS =
{
  mean_selected_sketch_coverage: :mean_selected_sketch_coverage,
  min_selected_sketch_coverage: :min_selected_sketch_coverage,
  selected_count: :selected_count,
  shard_id: :shard_id,
  sketch_kind: :sketch_kind,
  source_count: :source_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldIndexRoutingShardSelectionMetric

Returns a new instance of FoldIndexRoutingShardSelectionMetric.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @mean_selected_sketch_coverage = hash[:mean_selected_sketch_coverage]
  @min_selected_sketch_coverage = hash[:min_selected_sketch_coverage]
  @selected_count = hash[:selected_count]
  @shard_id = hash[:shard_id]
  @sketch_kind = hash[:sketch_kind]
  @source_count = hash[:source_count]
end

Instance Attribute Details

#mean_selected_sketch_coverageObject

Returns the value of attribute mean_selected_sketch_coverage.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def mean_selected_sketch_coverage
  @mean_selected_sketch_coverage
end

#min_selected_sketch_coverageObject

Returns the value of attribute min_selected_sketch_coverage.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def min_selected_sketch_coverage
  @min_selected_sketch_coverage
end

#selected_countObject

Returns the value of attribute selected_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def selected_count
  @selected_count
end

#shard_idObject

Returns the value of attribute shard_id.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def shard_id
  @shard_id
end

#sketch_kindObject

Returns the value of attribute sketch_kind.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def sketch_kind
  @sketch_kind
end

#source_countObject

Returns the value of attribute source_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_index_routing_shard_selection_metric.rb', line 17

def source_count
  @source_count
end