Class: Rafflesia::HomologyQueryContextProbeParameters

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb

Constant Summary collapse

HASH_ATTRS =
{
  max_bytes_read: :max_bytes_read,
  max_candidates: :max_candidates,
  max_object_reads: :max_object_reads,
  search_profile: :search_profile,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HomologyQueryContextProbeParameters

Returns a new instance of HomologyQueryContextProbeParameters.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @max_bytes_read = hash[:max_bytes_read]
  @max_candidates = hash[:max_candidates]
  @max_object_reads = hash[:max_object_reads]
  @search_profile = hash[:search_profile].nil? ? "balanced" : hash[:search_profile]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#max_bytes_readObject

Returns the value of attribute max_bytes_read.



16
17
18
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 16

def max_bytes_read
  @max_bytes_read
end

#max_candidatesObject

Returns the value of attribute max_candidates.



16
17
18
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 16

def max_candidates
  @max_candidates
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



16
17
18
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 16

def max_object_reads
  @max_object_reads
end

#search_profileObject

Returns the value of attribute search_profile.



16
17
18
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 16

def search_profile
  @search_profile
end

#timeout_msObject

Returns the value of attribute timeout_ms.



16
17
18
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_probe_parameters.rb', line 16

def timeout_ms
  @timeout_ms
end