Class: Rafflesia::SequenceCatalogBuildRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCatalogBuildRequest
- Defined in:
- lib/rafflesia/sequences/sequence_catalog_build_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ dataset_name: :dataset_name, dataset_version: :dataset_version, input_object_id: :input_object_id, input_path: :input_path, name: :name, source_database_snapshot: :source_database_snapshot, source_tool_version: :source_tool_version, version: :version }.freeze
Instance Attribute Summary collapse
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source_database_snapshot ⇒ Object
Returns the value of attribute source_database_snapshot.
-
#source_tool_version ⇒ Object
Returns the value of attribute source_tool_version.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCatalogBuildRequest
constructor
A new instance of SequenceCatalogBuildRequest.
Constructor Details
#initialize(json) ⇒ SequenceCatalogBuildRequest
Returns a new instance of SequenceCatalogBuildRequest.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @input_object_id = hash[:input_object_id] @input_path = hash[:input_path] @name = hash[:name] @source_database_snapshot = hash[:source_database_snapshot] ? Rafflesia::DatabaseSnapshot.new(hash[:source_database_snapshot]) : nil @source_tool_version = hash[:source_tool_version] ? Rafflesia::ToolVersion.new(hash[:source_tool_version]) : nil @version = hash[:version] end |
Instance Attribute Details
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def dataset_version @dataset_version end |
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def input_object_id @input_object_id end |
#input_path ⇒ Object
Returns the value of attribute input_path.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def input_path @input_path end |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def name @name end |
#source_database_snapshot ⇒ Object
Returns the value of attribute source_database_snapshot.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def source_database_snapshot @source_database_snapshot end |
#source_tool_version ⇒ Object
Returns the value of attribute source_tool_version.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def source_tool_version @source_tool_version end |
#version ⇒ Object
Returns the value of attribute version.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19 def version @version end |