Class: Rafflesia::ArtifactMaterializeData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArtifactMaterializeData
- Defined in:
- lib/rafflesia/artifacts/artifact_materialize_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, association_count: :association_count, associations: :associations, failure_count: :failure_count, manifest: :manifest, manifest_id: :manifest_id, manifest_path: :manifest_path, materialized_count: :materialized_count, materialized_object_count: :materialized_object_count, output_dir: :output_dir, output_manifest_object: :output_manifest_object, output_manifest_path: :output_manifest_path, output_table_object: :output_table_object, output_table_path: :output_table_path, paper_count: :paper_count, results: :results, skipped_count: :skipped_count }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#association_count ⇒ Object
Returns the value of attribute association_count.
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#failure_count ⇒ Object
Returns the value of attribute failure_count.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#materialized_count ⇒ Object
Returns the value of attribute materialized_count.
-
#materialized_object_count ⇒ Object
Returns the value of attribute materialized_object_count.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#output_manifest_object ⇒ Object
Returns the value of attribute output_manifest_object.
-
#output_manifest_path ⇒ Object
Returns the value of attribute output_manifest_path.
-
#output_table_object ⇒ Object
Returns the value of attribute output_table_object.
-
#output_table_path ⇒ Object
Returns the value of attribute output_table_path.
-
#paper_count ⇒ Object
Returns the value of attribute paper_count.
-
#results ⇒ Object
Returns the value of attribute results.
-
#skipped_count ⇒ Object
Returns the value of attribute skipped_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArtifactMaterializeData
constructor
A new instance of ArtifactMaterializeData.
Constructor Details
#initialize(json) ⇒ ArtifactMaterializeData
Returns a new instance of ArtifactMaterializeData.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @association_count = hash[:association_count] @associations = (hash[:associations] || []).map { |item| item ? Rafflesia::MapModelAssociationData.new(item) : nil } @failure_count = hash[:failure_count] @manifest = hash[:manifest] ? Rafflesia::ArtifactManifest.new(hash[:manifest]) : nil @manifest_id = hash[:manifest_id] @manifest_path = hash[:manifest_path] @materialized_count = hash[:materialized_count] @materialized_object_count = hash[:materialized_object_count] @output_dir = hash[:output_dir] @output_manifest_object = hash[:output_manifest_object] ? Rafflesia::ObjectRef.new(hash[:output_manifest_object]) : nil @output_manifest_path = hash[:output_manifest_path] @output_table_object = hash[:output_table_object] ? Rafflesia::ObjectRef.new(hash[:output_table_object]) : nil @output_table_path = hash[:output_table_path] @paper_count = hash[:paper_count] @results = (hash[:results] || []).map { |item| item ? Rafflesia::ArtifactMaterializationResult.new(item) : nil } @skipped_count = hash[:skipped_count] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def artifact_count @artifact_count end |
#association_count ⇒ Object
Returns the value of attribute association_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def association_count @association_count end |
#associations ⇒ Object
Returns the value of attribute associations.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def associations @associations end |
#failure_count ⇒ Object
Returns the value of attribute failure_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def failure_count @failure_count end |
#manifest ⇒ Object
Returns the value of attribute manifest.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def manifest @manifest end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def manifest_id @manifest_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def manifest_path @manifest_path end |
#materialized_count ⇒ Object
Returns the value of attribute materialized_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def materialized_count @materialized_count end |
#materialized_object_count ⇒ Object
Returns the value of attribute materialized_object_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def materialized_object_count @materialized_object_count end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def output_dir @output_dir end |
#output_manifest_object ⇒ Object
Returns the value of attribute output_manifest_object.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def output_manifest_object @output_manifest_object end |
#output_manifest_path ⇒ Object
Returns the value of attribute output_manifest_path.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def output_manifest_path @output_manifest_path end |
#output_table_object ⇒ Object
Returns the value of attribute output_table_object.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def output_table_object @output_table_object end |
#output_table_path ⇒ Object
Returns the value of attribute output_table_path.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def output_table_path @output_table_path end |
#paper_count ⇒ Object
Returns the value of attribute paper_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def paper_count @paper_count end |
#results ⇒ Object
Returns the value of attribute results.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def results @results end |
#skipped_count ⇒ Object
Returns the value of attribute skipped_count.
28 29 30 |
# File 'lib/rafflesia/artifacts/artifact_materialize_data.rb', line 28 def skipped_count @skipped_count end |