Class: Rafflesia::FoldSegmentBuildData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_bytesObject

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_countObject

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_mapObject

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_256Object

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_objectObject

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_idObject

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_nameObject

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_versionObject

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_256Object

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_objectObject

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

#manifestObject

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_objectObject

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_idObject

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

#nameObject

Returns the value of attribute name.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31

def name
  @name
end

#publishedObject

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_countObject

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

#refObject

Returns the value of attribute ref.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31

def ref
  @ref
end

#rootObject

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_idObject

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

#versionObject

Returns the value of attribute version.



31
32
33
# File 'lib/rafflesia/proteins/fold_segment_build_data.rb', line 31

def version
  @version
end