Class: Rafflesia::HomologyDatabaseRelease

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/homology_database_releases/homology_database_release.rb

Constant Summary collapse

HASH_ATTRS =
{
  aliases: :aliases,
  compiler_version: :compiler_version,
  created_at: :created_at,
  database_id: :database_id,
  explanation_calibration_count: :explanation_calibration_count,
  id: :id,
  is_explanation_calibration_available: :is_explanation_calibration_available,
  is_query_context_profile_available: :is_query_context_profile_available,
  manifest_sha256: :manifest_sha_256,
  object: :object,
  query_context_profile_artifact_sha256: :query_context_profile_artifact_sha_256,
  query_context_profile_artifact_uri: :query_context_profile_artifact_uri,
  query_context_profile_kind: :query_context_profile_kind,
  record_count: :record_count,
  residue_count: :residue_count,
  searchable_sequence_channel_ids: :searchable_sequence_channel_ids,
  status: :status,
  verifier_model_ids: :verifier_model_ids
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HomologyDatabaseRelease

Returns a new instance of HomologyDatabaseRelease.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @aliases = (hash[:aliases] || [])
  @compiler_version = hash[:compiler_version]
  @created_at = hash[:created_at]
  @database_id = hash[:database_id]
  @explanation_calibration_count = hash[:explanation_calibration_count]
  @id = hash[:id]
  @is_explanation_calibration_available = hash[:is_explanation_calibration_available]
  @is_query_context_profile_available = hash[:is_query_context_profile_available]
  @manifest_sha_256 = hash[:manifest_sha256]
  @object = hash[:object]
  @query_context_profile_artifact_sha_256 = hash[:query_context_profile_artifact_sha256]
  @query_context_profile_artifact_uri = hash[:query_context_profile_artifact_uri]
  @query_context_profile_kind = hash[:query_context_profile_kind]
  @record_count = hash[:record_count]
  @residue_count = hash[:residue_count]
  @searchable_sequence_channel_ids = (hash[:searchable_sequence_channel_ids] || [])
  @status = hash[:status]
  @verifier_model_ids = (hash[:verifier_model_ids] || [])
end

Instance Attribute Details

#aliasesObject

Returns the value of attribute aliases.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def aliases
  @aliases
end

#compiler_versionObject

Returns the value of attribute compiler_version.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def compiler_version
  @compiler_version
end

#created_atObject

Returns the value of attribute created_at.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def created_at
  @created_at
end

#database_idObject

Returns the value of attribute database_id.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def database_id
  @database_id
end

#explanation_calibration_countObject

Returns the value of attribute explanation_calibration_count.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def explanation_calibration_count
  @explanation_calibration_count
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def id
  @id
end

#is_explanation_calibration_availableObject

Returns the value of attribute is_explanation_calibration_available.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def is_explanation_calibration_available
  @is_explanation_calibration_available
end

#is_query_context_profile_availableObject

Returns the value of attribute is_query_context_profile_available.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def is_query_context_profile_available
  @is_query_context_profile_available
end

#manifest_sha_256Object

Returns the value of attribute manifest_sha_256.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def manifest_sha_256
  @manifest_sha_256
end

#objectObject

Returns the value of attribute object.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def object
  @object
end

#query_context_profile_artifact_sha_256Object

Returns the value of attribute query_context_profile_artifact_sha_256.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def query_context_profile_artifact_sha_256
  @query_context_profile_artifact_sha_256
end

#query_context_profile_artifact_uriObject

Returns the value of attribute query_context_profile_artifact_uri.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def query_context_profile_artifact_uri
  @query_context_profile_artifact_uri
end

#query_context_profile_kindObject

Returns the value of attribute query_context_profile_kind.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def query_context_profile_kind
  @query_context_profile_kind
end

#record_countObject

Returns the value of attribute record_count.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def record_count
  @record_count
end

#residue_countObject

Returns the value of attribute residue_count.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def residue_count
  @residue_count
end

#searchable_sequence_channel_idsObject

Returns the value of attribute searchable_sequence_channel_ids.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def searchable_sequence_channel_ids
  @searchable_sequence_channel_ids
end

#statusObject

Returns the value of attribute status.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def status
  @status
end

#verifier_model_idsObject

Returns the value of attribute verifier_model_ids.



29
30
31
# File 'lib/rafflesia/homology_database_releases/homology_database_release.rb', line 29

def verifier_model_ids
  @verifier_model_ids
end