Class: Rafflesia::SequencePositionMapping
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequencePositionMapping
- Defined in:
- lib/rafflesia/sequences/sequence_position_mapping.rb
Constant Summary collapse
- HASH_ATTRS =
{ alignment_column: :alignment_column, mapping_status: :mapping_status, query_position: :query_position, query_residue: :query_residue, target_position: :target_position, target_residue: :target_residue }.freeze
Instance Attribute Summary collapse
-
#alignment_column ⇒ Object
Returns the value of attribute alignment_column.
-
#mapping_status ⇒ Object
Returns the value of attribute mapping_status.
-
#query_position ⇒ Object
Returns the value of attribute query_position.
-
#query_residue ⇒ Object
Returns the value of attribute query_residue.
-
#target_position ⇒ Object
Returns the value of attribute target_position.
-
#target_residue ⇒ Object
Returns the value of attribute target_residue.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequencePositionMapping
constructor
A new instance of SequencePositionMapping.
Constructor Details
#initialize(json) ⇒ SequencePositionMapping
Returns a new instance of SequencePositionMapping.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @alignment_column = hash[:alignment_column] @mapping_status = hash[:mapping_status] @query_position = hash[:query_position] @query_residue = hash[:query_residue] @target_position = hash[:target_position] @target_residue = hash[:target_residue] end |
Instance Attribute Details
#alignment_column ⇒ Object
Returns the value of attribute alignment_column.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def alignment_column @alignment_column end |
#mapping_status ⇒ Object
Returns the value of attribute mapping_status.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def mapping_status @mapping_status end |
#query_position ⇒ Object
Returns the value of attribute query_position.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def query_position @query_position end |
#query_residue ⇒ Object
Returns the value of attribute query_residue.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def query_residue @query_residue end |
#target_position ⇒ Object
Returns the value of attribute target_position.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def target_position @target_position end |
#target_residue ⇒ Object
Returns the value of attribute target_residue.
17 18 19 |
# File 'lib/rafflesia/sequences/sequence_position_mapping.rb', line 17 def target_residue @target_residue end |