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