Class: Rafflesia::FoldSegmentBuildRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_segment_build_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,
  store_feature_object: :store_feature_object,
  structure_ids: :structure_ids,
  structure_paths: :structure_paths,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentBuildRequest

Returns a new instance of FoldSegmentBuildRequest.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 33

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]
  @store_feature_object = hash[:store_feature_object]
  @structure_ids = (hash[:structure_ids] || [])
  @structure_paths = (hash[:structure_paths] || [])
  @version = hash[:version]
end

Instance Attribute Details

#block_size_bytesObject

Returns the value of attribute block_size_bytes.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def block_size_bytes
  @block_size_bytes
end

#dataset_nameObject

Returns the value of attribute dataset_name.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def dataset_version
  @dataset_version
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def name
  @name
end

#publishObject

Returns the value of attribute publish.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def publish
  @publish
end

#refObject

Returns the value of attribute ref.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def ref
  @ref
end

#store_feature_objectObject

Returns the value of attribute store_feature_object.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def store_feature_object
  @store_feature_object
end

#structure_idsObject

Returns the value of attribute structure_ids.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def structure_ids
  @structure_ids
end

#structure_pathsObject

Returns the value of attribute structure_paths.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def structure_paths
  @structure_paths
end

#versionObject

Returns the value of attribute version.



21
22
23
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21

def version
  @version
end