Class: Rafflesia::FoldIndexBuildRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexBuildRequest
- Defined in:
- lib/rafflesia/proteins/fold_index_build_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ create_index: :create_index, dry_run: :dry_run, name: :name, output_dir: :output_dir, publish: :publish, routing_representatives_per_shard: :routing_representatives_per_shard, shard_count: :shard_count, source_manifest_object_id: :source_manifest_object_id, store_artifacts: :store_artifacts, structure_ids: :structure_ids, structure_object_ids: :structure_object_ids, version: :version }.freeze
Instance Attribute Summary collapse
-
#create_index ⇒ Object
Returns the value of attribute create_index.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#publish ⇒ Object
Returns the value of attribute publish.
-
#routing_representatives_per_shard ⇒ Object
Returns the value of attribute routing_representatives_per_shard.
-
#shard_count ⇒ Object
Returns the value of attribute shard_count.
-
#source_manifest_object_id ⇒ Object
Returns the value of attribute source_manifest_object_id.
-
#store_artifacts ⇒ Object
Returns the value of attribute store_artifacts.
-
#structure_ids ⇒ Object
Returns the value of attribute structure_ids.
-
#structure_object_ids ⇒ Object
Returns the value of attribute structure_object_ids.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldIndexBuildRequest
constructor
A new instance of FoldIndexBuildRequest.
Constructor Details
#initialize(json) ⇒ FoldIndexBuildRequest
Returns a new instance of FoldIndexBuildRequest.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @create_index = hash[:create_index] @dry_run = hash[:dry_run] @name = hash[:name] @output_dir = hash[:output_dir] @publish = hash[:publish] @routing_representatives_per_shard = hash[:routing_representatives_per_shard] @shard_count = hash[:shard_count] @source_manifest_object_id = hash[:source_manifest_object_id] @store_artifacts = hash[:store_artifacts] @structure_ids = (hash[:structure_ids] || []) @structure_object_ids = (hash[:structure_object_ids] || []) @version = hash[:version] end |
Instance Attribute Details
#create_index ⇒ Object
Returns the value of attribute create_index.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def create_index @create_index end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def dry_run @dry_run end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def name @name end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def output_dir @output_dir end |
#publish ⇒ Object
Returns the value of attribute publish.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def publish @publish end |
#routing_representatives_per_shard ⇒ Object
Returns the value of attribute routing_representatives_per_shard.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def routing_representatives_per_shard @routing_representatives_per_shard end |
#shard_count ⇒ Object
Returns the value of attribute shard_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def shard_count @shard_count end |
#source_manifest_object_id ⇒ Object
Returns the value of attribute source_manifest_object_id.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def source_manifest_object_id @source_manifest_object_id end |
#store_artifacts ⇒ Object
Returns the value of attribute store_artifacts.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def store_artifacts @store_artifacts end |
#structure_ids ⇒ Object
Returns the value of attribute structure_ids.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def structure_ids @structure_ids end |
#structure_object_ids ⇒ Object
Returns the value of attribute structure_object_ids.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def structure_object_ids @structure_object_ids end |
#version ⇒ Object
Returns the value of attribute version.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_build_request.rb', line 23 def version @version end |