Class: Rafflesia::MsaBuildRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MsaBuildRequest
- 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
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#extra_args ⇒ Object
Returns the value of attribute extra_args.
-
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#threads ⇒ Object
Returns the value of attribute threads.
Instance Method Summary collapse
-
#initialize(json) ⇒ MsaBuildRequest
constructor
A new instance of MsaBuildRequest.
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
#backend ⇒ Object
Returns the value of attribute backend.
21 22 23 |
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21 def backend @backend end |
#cache_mode ⇒ Object
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_run ⇒ Object
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_args ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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 |
#inputs ⇒ Object
Returns the value of attribute inputs.
21 22 23 |
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21 def inputs @inputs end |
#output_dir ⇒ Object
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 |
#strategy ⇒ Object
Returns the value of attribute strategy.
21 22 23 |
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21 def strategy @strategy end |
#threads ⇒ Object
Returns the value of attribute threads.
21 22 23 |
# File 'lib/rafflesia/sequences/msa_build_request.rb', line 21 def threads @threads end |