Class: Rafflesia::ProteinFoldCandidateBuildData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/protein_fold_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,
  index_generation: :index_generation,
  is_existing: :is_existing,
  kmer_size: :kmer_size,
  manifest_generation: :manifest_generation,
  min_shared_tokens: :min_shared_tokens,
  name: :name,
  namespace: :namespace,
  object_store_root: :object_store_root,
  payload_object: :payload_object,
  posting_segment_object: :posting_segment_object,
  record_count: :record_count,
  source_object: :source_object,
  source_object_id: :source_object_id,
  source_path: :source_path,
  source_sha256: :source_sha_256,
  timeout_ms: :timeout_ms,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ProteinFoldCandidateBuildData

Returns a new instance of ProteinFoldCandidateBuildData.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 63

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]
  @index_generation = hash[:index_generation]
  @is_existing = hash[:is_existing]
  @kmer_size = hash[:kmer_size]
  @manifest_generation = hash[:manifest_generation]
  @min_shared_tokens = hash[:min_shared_tokens]
  @name = hash[:name]
  @namespace = hash[:namespace]
  @object_store_root = hash[:object_store_root]
  @payload_object = hash[:payload_object]
  @posting_segment_object = hash[:posting_segment_object]
  @record_count = hash[:record_count]
  @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]
  @version = hash[:version]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def backend
  @backend
end

#build_actionObject

Returns the value of attribute build_action.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def build_action
  @build_action
end

#build_policyObject

Returns the value of attribute build_policy.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def build_policy
  @build_policy
end

#dataset_nameObject

Returns the value of attribute dataset_name.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def dataset_version
  @dataset_version
end

#engineObject

Returns the value of attribute engine.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def engine
  @engine
end

#engine_elapsed_msObject

Returns the value of attribute engine_elapsed_ms.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def engine_elapsed_ms
  @engine_elapsed_ms
end

#engine_protocol_versionObject

Returns the value of attribute engine_protocol_version.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def engine_protocol_version
  @engine_protocol_version
end

#index_generationObject

Returns the value of attribute index_generation.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def index_generation
  @index_generation
end

#is_existingObject

Returns the value of attribute is_existing.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def is_existing
  @is_existing
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def kmer_size
  @kmer_size
end

#manifest_generationObject

Returns the value of attribute manifest_generation.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def manifest_generation
  @manifest_generation
end

#min_shared_tokensObject

Returns the value of attribute min_shared_tokens.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def min_shared_tokens
  @min_shared_tokens
end

#nameObject

Returns the value of attribute name.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def namespace
  @namespace
end

#object_store_rootObject

Returns the value of attribute object_store_root.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def object_store_root
  @object_store_root
end

#payload_objectObject

Returns the value of attribute payload_object.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def payload_object
  @payload_object
end

#posting_segment_objectObject

Returns the value of attribute posting_segment_object.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def posting_segment_object
  @posting_segment_object
end

#record_countObject

Returns the value of attribute record_count.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def record_count
  @record_count
end

#source_objectObject

Returns the value of attribute source_object.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def source_object
  @source_object
end

#source_object_idObject

Returns the value of attribute source_object_id.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def source_object_id
  @source_object_id
end

#source_pathObject

Returns the value of attribute source_path.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def source_path
  @source_path
end

#source_sha_256Object

Returns the value of attribute source_sha_256.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def source_sha_256
  @source_sha_256
end

#timeout_msObject

Returns the value of attribute timeout_ms.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def timeout_ms
  @timeout_ms
end

#versionObject

Returns the value of attribute version.



36
37
38
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_data.rb', line 36

def version
  @version
end