Class: Rafflesia::MsaBuildData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MsaBuildData
- Defined in:
- lib/rafflesia/sequences/msa_build_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ alignment_object: :alignment_object, backend: :backend, cache_hit: :cache_hit, cache_key: :cache_key, cache_mode: :cache_mode, command: :command, dry_run: :dry_run, input_object: :input_object, input_path: :input_path, inspection: :inspection, manifest: :manifest, manifest_object: :manifest_object, output_path: :output_path, parameters: :parameters, raw_output_object: :raw_output_object }.freeze
Instance Attribute Summary collapse
-
#alignment_object ⇒ Object
Returns the value of attribute alignment_object.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
-
#cache_key ⇒ Object
Returns the value of attribute cache_key.
-
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
-
#command ⇒ Object
Returns the value of attribute command.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#input_object ⇒ Object
Returns the value of attribute input_object.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#inspection ⇒ Object
Returns the value of attribute inspection.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#raw_output_object ⇒ Object
Returns the value of attribute raw_output_object.
Instance Method Summary collapse
-
#initialize(json) ⇒ MsaBuildData
constructor
A new instance of MsaBuildData.
Constructor Details
#initialize(json) ⇒ MsaBuildData
Returns a new instance of MsaBuildData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @alignment_object = hash[:alignment_object] ? Rafflesia::ObjectRef.new(hash[:alignment_object]) : nil @backend = hash[:backend] @cache_hit = hash[:cache_hit] @cache_key = hash[:cache_key] @cache_mode = hash[:cache_mode] @command = (hash[:command] || []) @dry_run = hash[:dry_run] @input_object = hash[:input_object] ? Rafflesia::ObjectRef.new(hash[:input_object]) : nil @input_path = hash[:input_path] @inspection = hash[:inspection] ? Rafflesia::MsaInspectData.new(hash[:inspection]) : nil @manifest = hash[:manifest] ? Rafflesia::MsaArtifactManifest.new(hash[:manifest]) : nil @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @output_path = hash[:output_path] @parameters = hash[:parameters] || {} @raw_output_object = hash[:raw_output_object] ? Rafflesia::ObjectRef.new(hash[:raw_output_object]) : nil end |
Instance Attribute Details
#alignment_object ⇒ Object
Returns the value of attribute alignment_object.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def alignment_object @alignment_object end |
#backend ⇒ Object
Returns the value of attribute backend.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def backend @backend end |
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def cache_hit @cache_hit end |
#cache_key ⇒ Object
Returns the value of attribute cache_key.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def cache_key @cache_key end |
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def cache_mode @cache_mode end |
#command ⇒ Object
Returns the value of attribute command.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def command @command end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def dry_run @dry_run end |
#input_object ⇒ Object
Returns the value of attribute input_object.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def input_object @input_object end |
#input_path ⇒ Object
Returns the value of attribute input_path.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def input_path @input_path end |
#inspection ⇒ Object
Returns the value of attribute inspection.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def inspection @inspection end |
#manifest ⇒ Object
Returns the value of attribute manifest.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def manifest_object @manifest_object end |
#output_path ⇒ Object
Returns the value of attribute output_path.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def output_path @output_path end |
#parameters ⇒ Object
Returns the value of attribute parameters.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def parameters @parameters end |
#raw_output_object ⇒ Object
Returns the value of attribute raw_output_object.
26 27 28 |
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26 def raw_output_object @raw_output_object end |