Class: Rafflesia::HomologyQueryContextProbeParameters
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HomologyQueryContextProbeParameters
- 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
-
#max_bytes_read ⇒ Object
Returns the value of attribute max_bytes_read.
-
#max_candidates ⇒ Object
Returns the value of attribute max_candidates.
-
#max_object_reads ⇒ Object
Returns the value of attribute max_object_reads.
-
#search_profile ⇒ Object
Returns the value of attribute search_profile.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ HomologyQueryContextProbeParameters
constructor
A new instance of HomologyQueryContextProbeParameters.
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_read ⇒ Object
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_candidates ⇒ Object
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_reads ⇒ Object
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_profile ⇒ Object
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_ms ⇒ Object
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 |