Class: Rafflesia::AromaticStackingSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AromaticStackingSummaryData
- Defined in:
- lib/rafflesia/proteins/aromatic_stacking_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ aromatic_residue_count: :aromatic_residue_count, by_residue_pair: :by_residue_pair, pair_count: :pair_count, parallel_pairs: :parallel_pairs, participating_residue_count: :participating_residue_count, participation_fraction: :participation_fraction, perpendicular_pairs: :perpendicular_pairs, tilted_pairs: :tilted_pairs }.freeze
Instance Attribute Summary collapse
-
#aromatic_residue_count ⇒ Object
Returns the value of attribute aromatic_residue_count.
-
#by_residue_pair ⇒ Object
Returns the value of attribute by_residue_pair.
-
#pair_count ⇒ Object
Returns the value of attribute pair_count.
-
#parallel_pairs ⇒ Object
Returns the value of attribute parallel_pairs.
-
#participating_residue_count ⇒ Object
Returns the value of attribute participating_residue_count.
-
#participation_fraction ⇒ Object
Returns the value of attribute participation_fraction.
-
#perpendicular_pairs ⇒ Object
Returns the value of attribute perpendicular_pairs.
-
#tilted_pairs ⇒ Object
Returns the value of attribute tilted_pairs.
Instance Method Summary collapse
-
#initialize(json) ⇒ AromaticStackingSummaryData
constructor
A new instance of AromaticStackingSummaryData.
Constructor Details
#initialize(json) ⇒ AromaticStackingSummaryData
Returns a new instance of AromaticStackingSummaryData.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @aromatic_residue_count = hash[:aromatic_residue_count] @by_residue_pair = hash[:by_residue_pair] || {} @pair_count = hash[:pair_count] @parallel_pairs = hash[:parallel_pairs] @participating_residue_count = hash[:participating_residue_count] @participation_fraction = hash[:participation_fraction] @perpendicular_pairs = hash[:perpendicular_pairs] @tilted_pairs = hash[:tilted_pairs] end |
Instance Attribute Details
#aromatic_residue_count ⇒ Object
Returns the value of attribute aromatic_residue_count.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def aromatic_residue_count @aromatic_residue_count end |
#by_residue_pair ⇒ Object
Returns the value of attribute by_residue_pair.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def by_residue_pair @by_residue_pair end |
#pair_count ⇒ Object
Returns the value of attribute pair_count.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def pair_count @pair_count end |
#parallel_pairs ⇒ Object
Returns the value of attribute parallel_pairs.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def parallel_pairs @parallel_pairs end |
#participating_residue_count ⇒ Object
Returns the value of attribute participating_residue_count.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def participating_residue_count @participating_residue_count end |
#participation_fraction ⇒ Object
Returns the value of attribute participation_fraction.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def participation_fraction @participation_fraction end |
#perpendicular_pairs ⇒ Object
Returns the value of attribute perpendicular_pairs.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def perpendicular_pairs @perpendicular_pairs end |
#tilted_pairs ⇒ Object
Returns the value of attribute tilted_pairs.
19 20 21 |
# File 'lib/rafflesia/proteins/aromatic_stacking_summary_data.rb', line 19 def tilted_pairs @tilted_pairs end |