Class: Rafflesia::SequenceSeedIndexBenchmarkGate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb

Constant Summary collapse

HASH_ATTRS =
{
  max_object_bytes_per_query: :max_object_bytes_per_query,
  max_object_reads_per_query: :max_object_reads_per_query,
  min_mean_overlap_fraction: :min_mean_overlap_fraction,
  passed: :passed,
  reasons: :reasons,
  require_zero_materialization: :require_zero_materialization
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexBenchmarkGate

Returns a new instance of SequenceSeedIndexBenchmarkGate.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @max_object_bytes_per_query = hash[:max_object_bytes_per_query]
  @max_object_reads_per_query = hash[:max_object_reads_per_query]
  @min_mean_overlap_fraction = hash[:min_mean_overlap_fraction]
  @passed = hash[:passed]
  @reasons = (hash[:reasons] || [])
  @require_zero_materialization = hash[:require_zero_materialization]
end

Instance Attribute Details

#max_object_bytes_per_queryObject

Returns the value of attribute max_object_bytes_per_query.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def max_object_bytes_per_query
  @max_object_bytes_per_query
end

#max_object_reads_per_queryObject

Returns the value of attribute max_object_reads_per_query.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def max_object_reads_per_query
  @max_object_reads_per_query
end

#min_mean_overlap_fractionObject

Returns the value of attribute min_mean_overlap_fraction.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def min_mean_overlap_fraction
  @min_mean_overlap_fraction
end

#passedObject

Returns the value of attribute passed.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def passed
  @passed
end

#reasonsObject

Returns the value of attribute reasons.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def reasons
  @reasons
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



17
18
19
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_gate.rb', line 17

def require_zero_materialization
  @require_zero_materialization
end