Class: Rafflesia::MsaBuildData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_objectObject

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

#backendObject

Returns the value of attribute backend.



26
27
28
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26

def backend
  @backend
end

#cache_hitObject

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_keyObject

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_modeObject

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

#commandObject

Returns the value of attribute command.



26
27
28
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26

def command
  @command
end

#dry_runObject

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_objectObject

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_pathObject

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

#inspectionObject

Returns the value of attribute inspection.



26
27
28
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26

def inspection
  @inspection
end

#manifestObject

Returns the value of attribute manifest.



26
27
28
# File 'lib/rafflesia/sequences/msa_build_data.rb', line 26

def manifest
  @manifest
end

#manifest_objectObject

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_pathObject

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

#parametersObject

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_objectObject

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