Class: Rafflesia::CombinedSearchStructureOverlayRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/search/combined_search_structure_overlay_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  kmer_size: :kmer_size,
  max_hits: :max_hits,
  max_object_bytes: :max_object_bytes,
  max_object_reads: :max_object_reads,
  min_shared_tokens: :min_shared_tokens,
  namespace: :namespace,
  query_object_id: :query_object_id,
  query_path: :query_path,
  query_structure: :query_structure,
  require_zero_materialization: :require_zero_materialization,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CombinedSearchStructureOverlayRequest

Returns a new instance of CombinedSearchStructureOverlayRequest.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @kmer_size = hash[:kmer_size]
  @max_hits = hash[:max_hits]
  @max_object_bytes = hash[:max_object_bytes]
  @max_object_reads = hash[:max_object_reads]
  @min_shared_tokens = hash[:min_shared_tokens]
  @namespace = hash[:namespace]
  @query_object_id = hash[:query_object_id]
  @query_path = hash[:query_path]
  @query_structure = hash[:query_structure] ? Rafflesia::CombinedSearchStructureRecord.new(hash[:query_structure]) : nil
  @require_zero_materialization = hash[:require_zero_materialization]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#kmer_sizeObject

Returns the value of attribute kmer_size.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def kmer_size
  @kmer_size
end

#max_hitsObject

Returns the value of attribute max_hits.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def max_hits
  @max_hits
end

#max_object_bytesObject

Returns the value of attribute max_object_bytes.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def max_object_bytes
  @max_object_bytes
end

#max_object_readsObject

Returns the value of attribute max_object_reads.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def max_object_reads
  @max_object_reads
end

#min_shared_tokensObject

Returns the value of attribute min_shared_tokens.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def min_shared_tokens
  @min_shared_tokens
end

#namespaceObject

Returns the value of attribute namespace.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def namespace
  @namespace
end

#query_object_idObject

Returns the value of attribute query_object_id.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def query_object_id
  @query_object_id
end

#query_pathObject

Returns the value of attribute query_path.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def query_path
  @query_path
end

#query_structureObject

Returns the value of attribute query_structure.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def query_structure
  @query_structure
end

#require_zero_materializationObject

Returns the value of attribute require_zero_materialization.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def require_zero_materialization
  @require_zero_materialization
end

#timeout_msObject

Returns the value of attribute timeout_ms.



22
23
24
# File 'lib/rafflesia/search/combined_search_structure_overlay_request.rb', line 22

def timeout_ms
  @timeout_ms
end