Class: Rafflesia::FoldSegmentBuildRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSegmentBuildRequest
- 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
-
#block_size_bytes ⇒ Object
Returns the value of attribute block_size_bytes.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#name ⇒ Object
Returns the value of attribute name.
-
#publish ⇒ Object
Returns the value of attribute publish.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#store_feature_object ⇒ Object
Returns the value of attribute store_feature_object.
-
#structure_ids ⇒ Object
Returns the value of attribute structure_ids.
-
#structure_paths ⇒ Object
Returns the value of attribute structure_paths.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSegmentBuildRequest
constructor
A new instance of FoldSegmentBuildRequest.
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_bytes ⇒ Object
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_name ⇒ Object
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_version ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21 def name @name end |
#publish ⇒ Object
Returns the value of attribute publish.
21 22 23 |
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21 def publish @publish end |
#ref ⇒ Object
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_object ⇒ Object
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_ids ⇒ Object
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_paths ⇒ Object
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 |
#version ⇒ Object
Returns the value of attribute version.
21 22 23 |
# File 'lib/rafflesia/proteins/fold_segment_build_request.rb', line 21 def version @version end |