Class: Rafflesia::CationPiSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CationPiSummaryData
- Defined in:
- lib/rafflesia/proteins/cation_pi_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ arg_interactions: :arg_interactions, by_aromatic_residue: :by_aromatic_residue, by_cation_residue: :by_cation_residue, interaction_count: :interaction_count, lys_interactions: :lys_interactions }.freeze
Instance Attribute Summary collapse
-
#arg_interactions ⇒ Object
Returns the value of attribute arg_interactions.
-
#by_aromatic_residue ⇒ Object
Returns the value of attribute by_aromatic_residue.
-
#by_cation_residue ⇒ Object
Returns the value of attribute by_cation_residue.
-
#interaction_count ⇒ Object
Returns the value of attribute interaction_count.
-
#lys_interactions ⇒ Object
Returns the value of attribute lys_interactions.
Instance Method Summary collapse
-
#initialize(json) ⇒ CationPiSummaryData
constructor
A new instance of CationPiSummaryData.
Constructor Details
#initialize(json) ⇒ CationPiSummaryData
Returns a new instance of CationPiSummaryData.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @arg_interactions = hash[:arg_interactions] @by_aromatic_residue = hash[:by_aromatic_residue] || {} @by_cation_residue = hash[:by_cation_residue] || {} @interaction_count = hash[:interaction_count] @lys_interactions = hash[:lys_interactions] end |
Instance Attribute Details
#arg_interactions ⇒ Object
Returns the value of attribute arg_interactions.
16 17 18 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 16 def arg_interactions @arg_interactions end |
#by_aromatic_residue ⇒ Object
Returns the value of attribute by_aromatic_residue.
16 17 18 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 16 def by_aromatic_residue @by_aromatic_residue end |
#by_cation_residue ⇒ Object
Returns the value of attribute by_cation_residue.
16 17 18 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 16 def by_cation_residue @by_cation_residue end |
#interaction_count ⇒ Object
Returns the value of attribute interaction_count.
16 17 18 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 16 def interaction_count @interaction_count end |
#lys_interactions ⇒ Object
Returns the value of attribute lys_interactions.
16 17 18 |
# File 'lib/rafflesia/proteins/cation_pi_summary_data.rb', line 16 def lys_interactions @lys_interactions end |