Class: Rafflesia::ProteinFoldCandidateBuildRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/protein_fold_candidate_build_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  build_policy: :build_policy,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  input_object_id: :input_object_id,
  input_path: :input_path,
  kmer_size: :kmer_size,
  min_shared_tokens: :min_shared_tokens,
  name: :name,
  namespace: :namespace,
  timeout_ms: :timeout_ms,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ProteinFoldCandidateBuildRequest

Returns a new instance of ProteinFoldCandidateBuildRequest.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @build_policy = hash[:build_policy]
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @input_object_id = hash[:input_object_id]
  @input_path = hash[:input_path]
  @kmer_size = hash[:kmer_size]
  @min_shared_tokens = hash[:min_shared_tokens]
  @name = hash[:name]
  @namespace = hash[:namespace]
  @timeout_ms = hash[:timeout_ms]
  @version = hash[:version]
end

Instance Attribute Details

#build_policyObject

Returns the value of attribute build_policy.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def build_policy
  @build_policy
end

#dataset_nameObject

Returns the value of attribute dataset_name.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def dataset_version
  @dataset_version
end

#input_object_idObject

Returns the value of attribute input_object_id.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def input_object_id
  @input_object_id
end

#input_pathObject

Returns the value of attribute input_path.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def input_path
  @input_path
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def kmer_size
  @kmer_size
end

#min_shared_tokensObject

Returns the value of attribute min_shared_tokens.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def min_shared_tokens
  @min_shared_tokens
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def namespace
  @namespace
end

#timeout_msObject

Returns the value of attribute timeout_ms.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def timeout_ms
  @timeout_ms
end

#versionObject

Returns the value of attribute version.



22
23
24
# File 'lib/rafflesia/proteins/protein_fold_candidate_build_request.rb', line 22

def version
  @version
end