Class: Rafflesia::MsaBuildRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  cache_mode: :cache_mode,
  dry_run: :dry_run,
  extra_args: :extra_args,
  input_object_id: :input_object_id,
  input_path: :input_path,
  inputs: :inputs,
  output_dir: :output_dir,
  strategy: :strategy,
  threads: :threads
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MsaBuildRequest

Returns a new instance of MsaBuildRequest.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @cache_mode = hash[:cache_mode]
  @dry_run = hash[:dry_run]
  @extra_args = (hash[:extra_args] || [])
  @input_object_id = hash[:input_object_id]
  @input_path = hash[:input_path]
  @inputs = (hash[:inputs] || [])
  @output_dir = hash[:output_dir]
  @strategy = hash[:strategy]
  @threads = hash[:threads]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def backend
  @backend
end

#cache_modeObject

Returns the value of attribute cache_mode.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def cache_mode
  @cache_mode
end

#dry_runObject

Returns the value of attribute dry_run.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def dry_run
  @dry_run
end

#extra_argsObject

Returns the value of attribute extra_args.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def extra_args
  @extra_args
end

#input_object_idObject

Returns the value of attribute input_object_id.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def input_object_id
  @input_object_id
end

#input_pathObject

Returns the value of attribute input_path.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def input_path
  @input_path
end

#inputsObject

Returns the value of attribute inputs.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def inputs
  @inputs
end

#output_dirObject

Returns the value of attribute output_dir.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def output_dir
  @output_dir
end

#strategyObject

Returns the value of attribute strategy.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def strategy
  @strategy
end

#threadsObject

Returns the value of attribute threads.



21
22
23
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21

def threads
  @threads
end