Class: Rafflesia::FoldSegmentBuildData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSegmentBuildData
- Defined in:
- lib/rafflesia/proteins/fold_segment_build_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ block_bytes: :block_bytes, block_count: :block_count, block_map: :block_map, block_map_content_sha256: :block_map_content_sha_256, block_map_object: :block_map_object, block_map_object_id: :block_map_object_id, dataset_name: :dataset_name, dataset_version: :dataset_version, feature_content_sha256: :feature_content_sha_256, feature_object: :feature_object, manifest: :manifest, manifest_object: :manifest_object, manifest_object_id: :manifest_object_id, name: :name, published: :published, record_count: :record_count, ref: :ref, root: :root, segment_id: :segment_id, version: :version }.freeze
Instance Attribute Summary collapse
-
#block_bytes ⇒ Object
Returns the value of attribute block_bytes.
-
#block_count ⇒ Object
Returns the value of attribute block_count.
-
#block_map ⇒ Object
Returns the value of attribute block_map.
-
#block_map_content_sha_256 ⇒ Object
Returns the value of attribute block_map_content_sha_256.
-
#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_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#feature_content_sha_256 ⇒ Object
Returns the value of attribute feature_content_sha_256.
-
#feature_object ⇒ Object
Returns the value of attribute feature_object.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#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.
-
#published ⇒ Object
Returns the value of attribute published.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#root ⇒ Object
Returns the value of attribute root.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSegmentBuildData
constructor
A new instance of FoldSegmentBuildData.
Constructor Details
#initialize(json) ⇒ FoldSegmentBuildData
Returns a new instance of FoldSegmentBuildData.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @block_bytes = hash[:block_bytes] @block_count = hash[:block_count] @block_map = hash[:block_map] ? Rafflesia::FoldSegmentBlockMap.new(hash[:block_map]) : nil @block_map_content_sha_256 = hash[:block_map_content_sha256] @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_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @feature_content_sha_256 = hash[:feature_content_sha256] @feature_object = hash[:feature_object] ? Rafflesia::ObjectRef.new(hash[:feature_object]) : nil @manifest = hash[:manifest] ? Rafflesia::SearchSegmentManifest.new(hash[:manifest]) : nil @manifest_object = hash[:manifest_object] ? Rafflesia::ObjectRef.new(hash[:manifest_object]) : nil @manifest_object_id = hash[:manifest_object_id] @name = hash[:name] @published = hash[:published] ? Rafflesia::FoldSegmentPublishData.new(hash[:published]) : nil @record_count = hash[:record_count] @ref = hash[:ref] @root = hash[:root] ? Rafflesia::SearchSegmentRoot.new(hash[:root]) : nil @segment_id = hash[:segment_id] @version = hash[:version] end |
Instance Attribute Details
#block_bytes ⇒ Object
Returns the value of attribute block_bytes.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_bytes @block_bytes end |
#block_count ⇒ Object
Returns the value of attribute block_count.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_count @block_count end |
#block_map ⇒ Object
Returns the value of attribute block_map.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_map @block_map end |
#block_map_content_sha_256 ⇒ Object
Returns the value of attribute block_map_content_sha_256.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_map_content_sha_256 @block_map_content_sha_256 end |
#block_map_object ⇒ Object
Returns the value of attribute block_map_object.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_map_object @block_map_object end |
#block_map_object_id ⇒ Object
Returns the value of attribute block_map_object_id.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def block_map_object_id @block_map_object_id end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def dataset_version @dataset_version end |
#feature_content_sha_256 ⇒ Object
Returns the value of attribute feature_content_sha_256.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def feature_content_sha_256 @feature_content_sha_256 end |
#feature_object ⇒ Object
Returns the value of attribute feature_object.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def feature_object @feature_object end |
#manifest ⇒ Object
Returns the value of attribute manifest.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def manifest @manifest end |
#manifest_object ⇒ Object
Returns the value of attribute manifest_object.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def manifest_object @manifest_object end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def manifest_object_id @manifest_object_id end |
#name ⇒ Object
Returns the value of attribute name.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def name @name end |
#published ⇒ Object
Returns the value of attribute published.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def published @published end |
#record_count ⇒ Object
Returns the value of attribute record_count.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def record_count @record_count end |
#ref ⇒ Object
Returns the value of attribute ref.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def ref @ref end |
#root ⇒ Object
Returns the value of attribute root.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def root @root end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def segment_id @segment_id end |
#version ⇒ Object
Returns the value of attribute version.
31 32 33 |
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31 def version @version end |