Class: Rafflesia::FoldSegmentCompactRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_segment_compact_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  block_size_bytes: :block_size_bytes,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  name: :name,
  publish: :publish,
  ref: :ref,
  source_manifest_object_ids: :source_manifest_object_ids,
  source_manifest_paths: :source_manifest_paths,
  source_refs: :source_refs,
  store_feature_object: :store_feature_object,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentCompactRequest

Returns a new instance of FoldSegmentCompactRequest.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 35

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @block_size_bytes = hash[:block_size_bytes]
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @name = hash[:name]
  @publish = hash[:publish]
  @ref = hash[:ref]
  @source_manifest_object_ids = (hash[:source_manifest_object_ids] || [])
  @source_manifest_paths = (hash[:source_manifest_paths] || [])
  @source_refs = (hash[:source_refs] || [])
  @store_feature_object = hash[:store_feature_object]
  @version = hash[:version]
end

Instance Attribute Details

#block_size_bytesObject

Returns the value of attribute block_size_bytes.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def block_size_bytes
  @block_size_bytes
end

#dataset_nameObject

Returns the value of attribute dataset_name.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def dataset_version
  @dataset_version
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def name
  @name
end

#publishObject

Returns the value of attribute publish.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def publish
  @publish
end

#refObject

Returns the value of attribute ref.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def ref
  @ref
end

#source_manifest_object_idsObject

Returns the value of attribute source_manifest_object_ids.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def source_manifest_object_ids
  @source_manifest_object_ids
end

#source_manifest_pathsObject

Returns the value of attribute source_manifest_paths.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def source_manifest_paths
  @source_manifest_paths
end

#source_refsObject

Returns the value of attribute source_refs.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def source_refs
  @source_refs
end

#store_feature_objectObject

Returns the value of attribute store_feature_object.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def store_feature_object
  @store_feature_object
end

#versionObject

Returns the value of attribute version.



22
23
24
# File 'lib/rafflesia/proteins/fold_segment_compact_request.rb', line 22

def version
  @version
end