Class: Rafflesia::SequenceCatalogRegistryRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCatalogRegistryRecord
- Defined in:
- lib/rafflesia/sequences/sequence_catalog_registry_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ catalog_id: :catalog_id, content_sha256: :content_sha_256, created_at: :created_at, dataset_name: :dataset_name, dataset_version: :dataset_version, fasta_object_id: :fasta_object_id, manifest_object_id: :manifest_object_id, manifest_path: :manifest_path, name: :name, sequence_count: :sequence_count, source_object_id: :source_object_id, version: :version }.freeze
Instance Attribute Summary collapse
-
#catalog_id ⇒ Object
Returns the value of attribute catalog_id.
-
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#fasta_object_id ⇒ Object
Returns the value of attribute fasta_object_id.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
-
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCatalogRegistryRecord
constructor
A new instance of SequenceCatalogRegistryRecord.
Constructor Details
#initialize(json) ⇒ SequenceCatalogRegistryRecord
Returns a new instance of SequenceCatalogRegistryRecord.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @catalog_id = hash[:catalog_id] @content_sha_256 = hash[:content_sha256] @created_at = hash[:created_at] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @fasta_object_id = hash[:fasta_object_id] @manifest_object_id = hash[:manifest_object_id] @manifest_path = hash[:manifest_path] @name = hash[:name] @sequence_count = hash[:sequence_count] @source_object_id = hash[:source_object_id] @version = hash[:version] end |
Instance Attribute Details
#catalog_id ⇒ Object
Returns the value of attribute catalog_id.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def catalog_id @catalog_id end |
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def content_sha_256 @content_sha_256 end |
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def created_at @created_at end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def dataset_version @dataset_version end |
#fasta_object_id ⇒ Object
Returns the value of attribute fasta_object_id.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def fasta_object_id @fasta_object_id end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def manifest_object_id @manifest_object_id end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def manifest_path @manifest_path end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def name @name end |
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def sequence_count @sequence_count end |
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def source_object_id @source_object_id end |
#version ⇒ Object
Returns the value of attribute version.
23 24 25 |
# File 'lib/rafflesia/sequences/sequence_catalog_registry_record.rb', line 23 def version @version end |