Class: Rafflesia::ProfileBuildData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ProfileBuildData
- Defined in:
- lib/rafflesia/sequences/profile_build_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ alignment_object_id: :alignment_object_id, alignment_path: :alignment_path, backend: :backend, cache_hit: :cache_hit, cache_key: :cache_key, cache_mode: :cache_mode, command: :command, dry_run: :dry_run, inspection: :inspection, log_object: :log_object, manifest: :manifest, manifest_object: :manifest_object, name: :name, output_path: :output_path, parameters: :parameters, profile_object: :profile_object }.freeze
Instance Attribute Summary collapse
-
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
-
#alignment_path ⇒ Object
Returns the value of attribute alignment_path.
-
#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.
-
#inspection ⇒ Object
Returns the value of attribute inspection.
-
#log_object ⇒ Object
Returns the value of attribute log_object.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#profile_object ⇒ Object
Returns the value of attribute profile_object.
Instance Method Summary collapse
-
#initialize(json) ⇒ ProfileBuildData
constructor
A new instance of ProfileBuildData.
Constructor Details
#initialize(json) ⇒ ProfileBuildData
Returns a new instance of ProfileBuildData.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @alignment_object_id = hash[:alignment_object_id] @alignment_path = hash[:alignment_path] @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] @inspection = hash[:inspection] ? Rafflesia::MsaInspectData.new(hash[:inspection]) : nil @log_object = hash[:log_object] ? Rafflesia::ObjectRef.new(hash[:log_object]) : nil @manifest = hash[:manifest] ? Rafflesia::MsaArtifactManifest.new(hash[:manifest]) : nil @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @name = hash[:name] @output_path = hash[:output_path] @parameters = hash[:parameters] || {} @profile_object = hash[:profile_object] ? Rafflesia::ObjectRef.new(hash[:profile_object]) : nil end |
Instance Attribute Details
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def alignment_object_id @alignment_object_id end |
#alignment_path ⇒ Object
Returns the value of attribute alignment_path.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def alignment_path @alignment_path end |
#backend ⇒ Object
Returns the value of attribute backend.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def backend @backend end |
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def cache_hit @cache_hit end |
#cache_key ⇒ Object
Returns the value of attribute cache_key.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def cache_key @cache_key end |
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def cache_mode @cache_mode end |
#command ⇒ Object
Returns the value of attribute command.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def command @command end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def dry_run @dry_run end |
#inspection ⇒ Object
Returns the value of attribute inspection.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def inspection @inspection end |
#log_object ⇒ Object
Returns the value of attribute log_object.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def log_object @log_object end |
#manifest ⇒ Object
Returns the value of attribute manifest.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def manifest_object @manifest_object end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def name @name end |
#output_path ⇒ Object
Returns the value of attribute output_path.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def output_path @output_path end |
#parameters ⇒ Object
Returns the value of attribute parameters.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def parameters @parameters end |
#profile_object ⇒ Object
Returns the value of attribute profile_object.
27 28 29 |
# File 'lib/rafflesia/sequences/profile_build_data.rb', line 27 def profile_object @profile_object end |