Class: Rafflesia::VariantStructureMapping
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::VariantStructureMapping
- Defined in:
- lib/rafflesia/genomes/variant_structure_mapping.rb
Constant Summary collapse
- HASH_ATTRS =
{ structure_chain_id: :structure_chain_id, structure_id: :structure_id, structure_residue_number: :structure_residue_number }.freeze
Instance Attribute Summary collapse
-
#structure_chain_id ⇒ Object
Returns the value of attribute structure_chain_id.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#structure_residue_number ⇒ Object
Returns the value of attribute structure_residue_number.
Instance Method Summary collapse
-
#initialize(json) ⇒ VariantStructureMapping
constructor
A new instance of VariantStructureMapping.
Constructor Details
#initialize(json) ⇒ VariantStructureMapping
Returns a new instance of VariantStructureMapping.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/genomes/variant_structure_mapping.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @structure_chain_id = hash[:structure_chain_id] @structure_id = hash[:structure_id] @structure_residue_number = hash[:structure_residue_number] end |
Instance Attribute Details
#structure_chain_id ⇒ Object
Returns the value of attribute structure_chain_id.
14 15 16 |
# File 'lib/rafflesia/genomes/variant_structure_mapping.rb', line 14 def structure_chain_id @structure_chain_id end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
14 15 16 |
# File 'lib/rafflesia/genomes/variant_structure_mapping.rb', line 14 def structure_id @structure_id end |
#structure_residue_number ⇒ Object
Returns the value of attribute structure_residue_number.
14 15 16 |
# File 'lib/rafflesia/genomes/variant_structure_mapping.rb', line 14 def structure_residue_number @structure_residue_number end |