Class: Rafflesia::CoevolutionPair
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CoevolutionPair
- Defined in:
- lib/rafflesia/sequences/coevolution_pair.rb
Constant Summary collapse
- HASH_ATTRS =
{ column_i: :column_i, column_j: :column_j, ref_position_i: :ref_position_i, ref_position_j: :ref_position_j, ref_residue_i: :ref_residue_i, ref_residue_j: :ref_residue_j, score: :score, separation_columns: :separation_columns }.freeze
Instance Attribute Summary collapse
-
#column_i ⇒ Object
Returns the value of attribute column_i.
-
#column_j ⇒ Object
Returns the value of attribute column_j.
-
#ref_position_i ⇒ Object
Returns the value of attribute ref_position_i.
-
#ref_position_j ⇒ Object
Returns the value of attribute ref_position_j.
-
#ref_residue_i ⇒ Object
Returns the value of attribute ref_residue_i.
-
#ref_residue_j ⇒ Object
Returns the value of attribute ref_residue_j.
-
#score ⇒ Object
Returns the value of attribute score.
-
#separation_columns ⇒ Object
Returns the value of attribute separation_columns.
Instance Method Summary collapse
-
#initialize(json) ⇒ CoevolutionPair
constructor
A new instance of CoevolutionPair.
Constructor Details
#initialize(json) ⇒ CoevolutionPair
Returns a new instance of CoevolutionPair.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @column_i = hash[:column_i] @column_j = hash[:column_j] @ref_position_i = hash[:ref_position_i] @ref_position_j = hash[:ref_position_j] @ref_residue_i = hash[:ref_residue_i] @ref_residue_j = hash[:ref_residue_j] @score = hash[:score] @separation_columns = hash[:separation_columns] end |
Instance Attribute Details
#column_i ⇒ Object
Returns the value of attribute column_i.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def column_i @column_i end |
#column_j ⇒ Object
Returns the value of attribute column_j.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def column_j @column_j end |
#ref_position_i ⇒ Object
Returns the value of attribute ref_position_i.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def ref_position_i @ref_position_i end |
#ref_position_j ⇒ Object
Returns the value of attribute ref_position_j.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def ref_position_j @ref_position_j end |
#ref_residue_i ⇒ Object
Returns the value of attribute ref_residue_i.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def ref_residue_i @ref_residue_i end |
#ref_residue_j ⇒ Object
Returns the value of attribute ref_residue_j.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def ref_residue_j @ref_residue_j end |
#score ⇒ Object
Returns the value of attribute score.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def score @score end |
#separation_columns ⇒ Object
Returns the value of attribute separation_columns.
19 20 21 |
# File 'lib/rafflesia/sequences/coevolution_pair.rb', line 19 def separation_columns @separation_columns end |