Class: Rafflesia::SequenceCatalogBuildRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_nameObject

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_versionObject

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_idObject

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_pathObject

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

#nameObject

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_snapshotObject

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_versionObject

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

#versionObject

Returns the value of attribute version.



19
20
21
# File 'lib/rafflesia/sequences/sequence_catalog_build_request.rb', line 19

def version
  @version
end