Class: Rafflesia::HomologyQueryContextSelection

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/homology_query_context_measurements/homology_query_context_selection.rb

Constant Summary collapse

HASH_ATTRS =
{
  database_id: :database_id,
  database_release_id: :database_release_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HomologyQueryContextSelection

Returns a new instance of HomologyQueryContextSelection.



17
18
19
20
21
22
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_selection.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @database_id = hash[:database_id]
  @database_release_id = hash[:database_release_id]
end

Instance Attribute Details

#database_idObject

Returns the value of attribute database_id.



13
14
15
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_selection.rb', line 13

def database_id
  @database_id
end

#database_release_idObject

Returns the value of attribute database_release_id.



13
14
15
# File 'lib/rafflesia/homology_query_context_measurements/homology_query_context_selection.rb', line 13

def database_release_id
  @database_release_id
end