Class: Rafflesia::FoldIndexBuildData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexBuildData
- Defined in:
- lib/rafflesia/proteins/fold_index_build_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, backend: :backend, dry_run: :dry_run, manifest: :manifest, manifest_object: :manifest_object, manifest_path: :manifest_path, name: :name, published: :published, ref: :ref, shard_count: :shard_count, total_size_bytes: :total_size_bytes, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#published ⇒ Object
Returns the value of attribute published.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldIndexBuildData
constructor
A new instance of FoldIndexBuildData.
Constructor Details
#initialize(json) ⇒ FoldIndexBuildData
Returns a new instance of FoldIndexBuildData.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @backend = hash[:backend] @dry_run = hash[:dry_run] @manifest = hash[:manifest] ? Rafflesia::FoldIndexManifest.new(hash[:manifest]) : nil @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @manifest_path = hash[:manifest_path] @name = hash[:name] @published = hash[:published] ? Rafflesia::FoldIndexPublishData.new(hash[:published]) : nil @ref = hash[:ref] @shard_count = hash[:shard_count] @total_size_bytes = hash[:total_size_bytes] @version = hash[:version] end |
Instance Attribute Details
#artifact_count ⇒ Object
Returns the value of attribute artifact_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def artifact_count @artifact_count end |
#backend ⇒ Object
Returns the value of attribute backend.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def backend @backend end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def dry_run @dry_run end |
#manifest ⇒ Object
Returns the value of attribute manifest.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def manifest_object @manifest_object end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def name @name end |
#published ⇒ Object
Returns the value of attribute published.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def published @published end |
#ref ⇒ Object
Returns the value of attribute ref.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def ref @ref end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def shard_count @shard_count end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def total_size_bytes @total_size_bytes end |
#version ⇒ Object
Returns the value of attribute version.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_data.rb', line 23 def version @version end |