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