Class: Rafflesia::BiosearchQueryProfileIngestRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  allow_duplicate: :allow_duplicate,
  dry_run: :dry_run,
  expected_row_count: :expected_row_count,
  ingest_mode: :ingest_mode,
  insert_chunk_bytes: :insert_chunk_bytes,
  path: :path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BiosearchQueryProfileIngestRequest

Returns a new instance of BiosearchQueryProfileIngestRequest.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_duplicate = hash[:allow_duplicate]
  @dry_run = hash[:dry_run]
  @expected_row_count = hash[:expected_row_count]
  @ingest_mode = hash[:ingest_mode]
  @insert_chunk_bytes = hash[:insert_chunk_bytes]
  @path = hash[:path]
end

Instance Attribute Details

#allow_duplicateObject

Returns the value of attribute allow_duplicate.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def allow_duplicate
  @allow_duplicate
end

#dry_runObject

Returns the value of attribute dry_run.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def dry_run
  @dry_run
end

#expected_row_countObject

Returns the value of attribute expected_row_count.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def expected_row_count
  @expected_row_count
end

#ingest_modeObject

Returns the value of attribute ingest_mode.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def ingest_mode
  @ingest_mode
end

#insert_chunk_bytesObject

Returns the value of attribute insert_chunk_bytes.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def insert_chunk_bytes
  @insert_chunk_bytes
end

#pathObject

Returns the value of attribute path.



17
18
19
# File 'lib/rafflesia/biosearch/biosearch_query_profile_ingest_request.rb', line 17

def path
  @path
end