Class: Rafflesia::SequenceCandidateBuildData

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  build_action: :build_action,
  build_policy: :build_policy,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  engine: :engine,
  engine_elapsed_ms: :engine_elapsed_ms,
  engine_protocol_version: :engine_protocol_version,
  engine_request_count: :engine_request_count,
  index_generation: :index_generation,
  is_existing: :is_existing,
  kmer_size: :kmer_size,
  manifest_generation: :manifest_generation,
  minimizer_window: :minimizer_window,
  name: :name,
  namespace: :namespace,
  object_store_root: :object_store_root,
  payload_object: :payload_object,
  payload_record_ref_count: :payload_record_ref_count,
  payload_shard_count: :payload_shard_count,
  payload_shard_records: :payload_shard_records,
  posting_encoded_bytes: :posting_encoded_bytes,
  posting_encoding: :posting_encoding,
  posting_segment_object: :posting_segment_object,
  posting_uncompressed_bytes: :posting_uncompressed_bytes,
  record_count: :record_count,
  reduced_alphabet: :reduced_alphabet,
  seed_strategy: :seed_strategy,
  source_object: :source_object,
  source_object_id: :source_object_id,
  source_path: :source_path,
  source_sha256: :source_sha_256,
  timeout_ms: :timeout_ms,
  token_count: :token_count,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceCandidateBuildData

Returns a new instance of SequenceCandidateBuildData.



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 83

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @build_action = hash[:build_action]
  @build_policy = hash[:build_policy]
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @engine = hash[:engine]
  @engine_elapsed_ms = hash[:engine_elapsed_ms]
  @engine_protocol_version = hash[:engine_protocol_version]
  @engine_request_count = hash[:engine_request_count]
  @index_generation = hash[:index_generation]
  @is_existing = hash[:is_existing]
  @kmer_size = hash[:kmer_size]
  @manifest_generation = hash[:manifest_generation]
  @minimizer_window = hash[:minimizer_window]
  @name = hash[:name]
  @namespace = hash[:namespace]
  @object_store_root = hash[:object_store_root]
  @payload_object = hash[:payload_object]
  @payload_record_ref_count = hash[:payload_record_ref_count]
  @payload_shard_count = hash[:payload_shard_count]
  @payload_shard_records = hash[:payload_shard_records]
  @posting_encoded_bytes = hash[:posting_encoded_bytes]
  @posting_encoding = hash[:posting_encoding]
  @posting_segment_object = hash[:posting_segment_object]
  @posting_uncompressed_bytes = hash[:posting_uncompressed_bytes]
  @record_count = hash[:record_count]
  @reduced_alphabet = hash[:reduced_alphabet]
  @seed_strategy = hash[:seed_strategy]
  @source_object = hash[:source_object] ? Rafflesia::ObjectRef.new(hash[:source_object]) : nil
  @source_object_id = hash[:source_object_id]
  @source_path = hash[:source_path]
  @source_sha_256 = hash[:source_sha256]
  @timeout_ms = hash[:timeout_ms]
  @token_count = hash[:token_count]
  @version = hash[:version]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def backend
  @backend
end

#build_actionObject

Returns the value of attribute build_action.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def build_action
  @build_action
end

#build_policyObject

Returns the value of attribute build_policy.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def build_policy
  @build_policy
end

#dataset_nameObject

Returns the value of attribute dataset_name.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def dataset_version
  @dataset_version
end

#engineObject

Returns the value of attribute engine.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def engine
  @engine
end

#engine_elapsed_msObject

Returns the value of attribute engine_elapsed_ms.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def engine_elapsed_ms
  @engine_elapsed_ms
end

#engine_protocol_versionObject

Returns the value of attribute engine_protocol_version.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def engine_protocol_version
  @engine_protocol_version
end

#engine_request_countObject

Returns the value of attribute engine_request_count.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def engine_request_count
  @engine_request_count
end

#index_generationObject

Returns the value of attribute index_generation.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def index_generation
  @index_generation
end

#is_existingObject

Returns the value of attribute is_existing.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def is_existing
  @is_existing
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def kmer_size
  @kmer_size
end

#manifest_generationObject

Returns the value of attribute manifest_generation.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def manifest_generation
  @manifest_generation
end

#minimizer_windowObject

Returns the value of attribute minimizer_window.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def minimizer_window
  @minimizer_window
end

#nameObject

Returns the value of attribute name.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def namespace
  @namespace
end

#object_store_rootObject

Returns the value of attribute object_store_root.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def object_store_root
  @object_store_root
end

#payload_objectObject

Returns the value of attribute payload_object.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def payload_object
  @payload_object
end

#payload_record_ref_countObject

Returns the value of attribute payload_record_ref_count.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def payload_record_ref_count
  @payload_record_ref_count
end

#payload_shard_countObject

Returns the value of attribute payload_shard_count.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def payload_shard_count
  @payload_shard_count
end

#payload_shard_recordsObject

Returns the value of attribute payload_shard_records.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def payload_shard_records
  @payload_shard_records
end

#posting_encoded_bytesObject

Returns the value of attribute posting_encoded_bytes.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def posting_encoded_bytes
  @posting_encoded_bytes
end

#posting_encodingObject

Returns the value of attribute posting_encoding.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def posting_encoding
  @posting_encoding
end

#posting_segment_objectObject

Returns the value of attribute posting_segment_object.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def posting_segment_object
  @posting_segment_object
end

#posting_uncompressed_bytesObject

Returns the value of attribute posting_uncompressed_bytes.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def posting_uncompressed_bytes
  @posting_uncompressed_bytes
end

#record_countObject

Returns the value of attribute record_count.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def record_count
  @record_count
end

#reduced_alphabetObject

Returns the value of attribute reduced_alphabet.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def reduced_alphabet
  @reduced_alphabet
end

#seed_strategyObject

Returns the value of attribute seed_strategy.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def seed_strategy
  @seed_strategy
end

#source_objectObject

Returns the value of attribute source_object.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def source_object
  @source_object
end

#source_object_idObject

Returns the value of attribute source_object_id.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def source_object_id
  @source_object_id
end

#source_pathObject

Returns the value of attribute source_path.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def source_path
  @source_path
end

#source_sha_256Object

Returns the value of attribute source_sha_256.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def source_sha_256
  @source_sha_256
end

#timeout_msObject

Returns the value of attribute timeout_ms.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def timeout_ms
  @timeout_ms
end

#token_countObject

Returns the value of attribute token_count.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def token_count
  @token_count
end

#versionObject

Returns the value of attribute version.



46
47
48
# File 'lib/rafflesia/sequences/sequence_candidate_build_data.rb', line 46

def version
  @version
end