Class: Rafflesia::FoldIndexRegistryRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexRegistryRecord
- Defined in:
- lib/rafflesia/proteins/fold_index_registry_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_count: :artifact_count, backend: :backend, engine_version: :engine_version, manifest_id: :manifest_id, manifest_object: :manifest_object, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, name: :name, published_at: :published_at, ref: :ref, routing_benchmark_object_id: :routing_benchmark_object_id, routing_benchmark_passed: :routing_benchmark_passed, shard_count: :shard_count, source_count: :source_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.
-
#engine_version ⇒ Object
Returns the value of attribute engine_version.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#routing_benchmark_object_id ⇒ Object
Returns the value of attribute routing_benchmark_object_id.
-
#routing_benchmark_passed ⇒ Object
Returns the value of attribute routing_benchmark_passed.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#source_count ⇒ Object
Returns the value of attribute source_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) ⇒ FoldIndexRegistryRecord
constructor
A new instance of FoldIndexRegistryRecord.
Constructor Details
#initialize(json) ⇒ FoldIndexRegistryRecord
Returns a new instance of FoldIndexRegistryRecord.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @artifact_count = hash[:artifact_count] @backend = hash[:backend] @engine_version = hash[:engine_version] @manifest_id = hash[:manifest_id] @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @name = hash[:name] @published_at = hash[:published_at] @ref = hash[:ref] @routing_benchmark_object_id = hash[:routing_benchmark_object_id] @routing_benchmark_passed = hash[:routing_benchmark_passed] @shard_count = hash[:shard_count] @source_count = hash[:source_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.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def artifact_count @artifact_count end |
#backend ⇒ Object
Returns the value of attribute backend.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def backend @backend end |
#engine_version ⇒ Object
Returns the value of attribute engine_version.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def engine_version @engine_version end |
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def manifest_id @manifest_id end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def manifest_object @manifest_object end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def name @name end |
#published_at ⇒ Object
Returns the value of attribute published_at.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def published_at @published_at end |
#ref ⇒ Object
Returns the value of attribute ref.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def ref @ref end |
#routing_benchmark_object_id ⇒ Object
Returns the value of attribute routing_benchmark_object_id.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def routing_benchmark_object_id @routing_benchmark_object_id end |
#routing_benchmark_passed ⇒ Object
Returns the value of attribute routing_benchmark_passed.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def routing_benchmark_passed @routing_benchmark_passed end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def shard_count @shard_count end |
#source_count ⇒ Object
Returns the value of attribute source_count.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def source_count @source_count end |
#total_size_bytes ⇒ Object
Returns the value of attribute total_size_bytes.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def total_size_bytes @total_size_bytes end |
#version ⇒ Object
Returns the value of attribute version.
27 28 29 |
# File 'lib/rafflesia/proteins/fold_index_registry_record.rb', line 27 def version @version end |