Class: Rafflesia::FoldSegmentPublishData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSegmentPublishData
- Defined in:
- lib/rafflesia/proteins/fold_segment_publish_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ activated_at: :activated_at, benchmark: :benchmark, benchmark_object_id: :benchmark_object_id, benchmark_passed: :benchmark_passed, block_bytes: :block_bytes, block_count: :block_count, block_map_object: :block_map_object, block_map_object_id: :block_map_object_id, dataset_id: :dataset_id, dataset_version_number: :dataset_version_number, generation_id: :generation_id, generation_status: :generation_status, manifest_object: :manifest_object, manifest_object_id: :manifest_object_id, name: :name, policy: :policy, published_at: :published_at, record_count: :record_count, ref: :ref, retired_at: :retired_at, search_benchmark: :search_benchmark, search_benchmark_object_id: :search_benchmark_object_id, search_benchmark_passed: :search_benchmark_passed, segment_id: :segment_id, superseded_by_ref: :superseded_by_ref, supersedes_ref: :supersedes_ref, version: :version, workload_profile: :workload_profile }.freeze
Instance Attribute Summary collapse
-
#activated_at ⇒ Object
Returns the value of attribute activated_at.
-
#benchmark ⇒ Object
Returns the value of attribute benchmark.
-
#benchmark_object_id ⇒ Object
Returns the value of attribute benchmark_object_id.
-
#benchmark_passed ⇒ Object
Returns the value of attribute benchmark_passed.
-
#block_bytes ⇒ Object
Returns the value of attribute block_bytes.
-
#block_count ⇒ Object
Returns the value of attribute block_count.
-
#block_map_object ⇒ Object
Returns the value of attribute block_map_object.
-
#block_map_object_id ⇒ Object
Returns the value of attribute block_map_object_id.
-
#dataset_id ⇒ Object
Returns the value of attribute dataset_id.
-
#dataset_version_number ⇒ Object
Returns the value of attribute dataset_version_number.
-
#generation_id ⇒ Object
Returns the value of attribute generation_id.
-
#generation_status ⇒ Object
Returns the value of attribute generation_status.
-
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#retired_at ⇒ Object
Returns the value of attribute retired_at.
-
#search_benchmark ⇒ Object
Returns the value of attribute search_benchmark.
-
#search_benchmark_object_id ⇒ Object
Returns the value of attribute search_benchmark_object_id.
-
#search_benchmark_passed ⇒ Object
Returns the value of attribute search_benchmark_passed.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#superseded_by_ref ⇒ Object
Returns the value of attribute superseded_by_ref.
-
#supersedes_ref ⇒ Object
Returns the value of attribute supersedes_ref.
-
#version ⇒ Object
Returns the value of attribute version.
-
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSegmentPublishData
constructor
A new instance of FoldSegmentPublishData.
Constructor Details
#initialize(json) ⇒ FoldSegmentPublishData
Returns a new instance of FoldSegmentPublishData.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 69 def initialize(json) super() hash = self.class.normalize(json) @activated_at = hash[:activated_at] @benchmark = hash[:benchmark] ? Rafflesia::FoldSegmentBenchmarkSummary.new(hash[:benchmark]) : nil @benchmark_object_id = hash[:benchmark_object_id] @benchmark_passed = hash[:benchmark_passed] @block_bytes = hash[:block_bytes] @block_count = hash[:block_count] @block_map_object = hash[:block_map_object] ? Rafflesia::ObjectRef.new(hash[:block_map_object]) : nil @block_map_object_id = hash[:block_map_object_id] @dataset_id = hash[:dataset_id] @dataset_version_number = hash[:dataset_version_number] @generation_id = hash[:generation_id] @generation_status = hash[:generation_status] @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @manifest_object_id = hash[:manifest_object_id] @name = hash[:name] @policy = hash[:policy] ? Rafflesia::ServerlessPublishPolicy.new(hash[:policy]) : nil @published_at = hash[:published_at] @record_count = hash[:record_count] @ref = hash[:ref] @retired_at = hash[:retired_at] @search_benchmark = hash[:search_benchmark] ? Rafflesia::FoldSearchBenchmarkSummary.new(hash[:search_benchmark]) : nil @search_benchmark_object_id = hash[:search_benchmark_object_id] @search_benchmark_passed = hash[:search_benchmark_passed] @segment_id = hash[:segment_id] @superseded_by_ref = hash[:superseded_by_ref] @supersedes_ref = hash[:supersedes_ref] @version = hash[:version] @workload_profile = hash[:workload_profile] end |
Instance Attribute Details
#activated_at ⇒ Object
Returns the value of attribute activated_at.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def activated_at @activated_at end |
#benchmark ⇒ Object
Returns the value of attribute benchmark.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def benchmark @benchmark end |
#benchmark_object_id ⇒ Object
Returns the value of attribute benchmark_object_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def benchmark_object_id @benchmark_object_id end |
#benchmark_passed ⇒ Object
Returns the value of attribute benchmark_passed.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def benchmark_passed @benchmark_passed end |
#block_bytes ⇒ Object
Returns the value of attribute block_bytes.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def block_bytes @block_bytes end |
#block_count ⇒ Object
Returns the value of attribute block_count.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def block_count @block_count end |
#block_map_object ⇒ Object
Returns the value of attribute block_map_object.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def block_map_object @block_map_object end |
#block_map_object_id ⇒ Object
Returns the value of attribute block_map_object_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def block_map_object_id @block_map_object_id end |
#dataset_id ⇒ Object
Returns the value of attribute dataset_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def dataset_id @dataset_id end |
#dataset_version_number ⇒ Object
Returns the value of attribute dataset_version_number.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def dataset_version_number @dataset_version_number end |
#generation_id ⇒ Object
Returns the value of attribute generation_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def generation_id @generation_id end |
#generation_status ⇒ Object
Returns the value of attribute generation_status.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def generation_status @generation_status end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def manifest_object @manifest_object end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def manifest_object_id @manifest_object_id end |
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def name @name end |
#policy ⇒ Object
Returns the value of attribute policy.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def policy @policy end |
#published_at ⇒ Object
Returns the value of attribute published_at.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def published_at @published_at end |
#record_count ⇒ Object
Returns the value of attribute record_count.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def record_count @record_count end |
#ref ⇒ Object
Returns the value of attribute ref.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def ref @ref end |
#retired_at ⇒ Object
Returns the value of attribute retired_at.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def retired_at @retired_at end |
#search_benchmark ⇒ Object
Returns the value of attribute search_benchmark.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def search_benchmark @search_benchmark end |
#search_benchmark_object_id ⇒ Object
Returns the value of attribute search_benchmark_object_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def search_benchmark_object_id @search_benchmark_object_id end |
#search_benchmark_passed ⇒ Object
Returns the value of attribute search_benchmark_passed.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def search_benchmark_passed @search_benchmark_passed end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def segment_id @segment_id end |
#superseded_by_ref ⇒ Object
Returns the value of attribute superseded_by_ref.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def superseded_by_ref @superseded_by_ref end |
#supersedes_ref ⇒ Object
Returns the value of attribute supersedes_ref.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def supersedes_ref @supersedes_ref end |
#version ⇒ Object
Returns the value of attribute version.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def version @version end |
#workload_profile ⇒ Object
Returns the value of attribute workload_profile.
39 40 41 |
# File 'lib/rafflesia/proteins/fold_segment_publish_data.rb', line 39 def workload_profile @workload_profile end |