Class: Rafflesia::PeptideBondSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PeptideBondSummaryData
- Defined in:
- lib/rafflesia/proteins/peptide_bond_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ bond_count: :bond_count, cis_count: :cis_count, cis_non_proline: :cis_non_proline, cis_non_proline_fraction: :cis_non_proline_fraction, cis_proline: :cis_proline, cis_proline_fraction: :cis_proline_fraction, non_proline_bonds: :non_proline_bonds, proline_bonds: :proline_bonds, trans_count: :trans_count, twisted_count: :twisted_count }.freeze
Instance Attribute Summary collapse
-
#bond_count ⇒ Object
Returns the value of attribute bond_count.
-
#cis_count ⇒ Object
Returns the value of attribute cis_count.
-
#cis_non_proline ⇒ Object
Returns the value of attribute cis_non_proline.
-
#cis_non_proline_fraction ⇒ Object
Returns the value of attribute cis_non_proline_fraction.
-
#cis_proline ⇒ Object
Returns the value of attribute cis_proline.
-
#cis_proline_fraction ⇒ Object
Returns the value of attribute cis_proline_fraction.
-
#non_proline_bonds ⇒ Object
Returns the value of attribute non_proline_bonds.
-
#proline_bonds ⇒ Object
Returns the value of attribute proline_bonds.
-
#trans_count ⇒ Object
Returns the value of attribute trans_count.
-
#twisted_count ⇒ Object
Returns the value of attribute twisted_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ PeptideBondSummaryData
constructor
A new instance of PeptideBondSummaryData.
Constructor Details
#initialize(json) ⇒ PeptideBondSummaryData
Returns a new instance of PeptideBondSummaryData.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @bond_count = hash[:bond_count] @cis_count = hash[:cis_count] @cis_non_proline = hash[:cis_non_proline] @cis_non_proline_fraction = hash[:cis_non_proline_fraction] @cis_proline = hash[:cis_proline] @cis_proline_fraction = hash[:cis_proline_fraction] @non_proline_bonds = hash[:non_proline_bonds] @proline_bonds = hash[:proline_bonds] @trans_count = hash[:trans_count] @twisted_count = hash[:twisted_count] end |
Instance Attribute Details
#bond_count ⇒ Object
Returns the value of attribute bond_count.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def bond_count @bond_count end |
#cis_count ⇒ Object
Returns the value of attribute cis_count.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def cis_count @cis_count end |
#cis_non_proline ⇒ Object
Returns the value of attribute cis_non_proline.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def cis_non_proline @cis_non_proline end |
#cis_non_proline_fraction ⇒ Object
Returns the value of attribute cis_non_proline_fraction.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def cis_non_proline_fraction @cis_non_proline_fraction end |
#cis_proline ⇒ Object
Returns the value of attribute cis_proline.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def cis_proline @cis_proline end |
#cis_proline_fraction ⇒ Object
Returns the value of attribute cis_proline_fraction.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def cis_proline_fraction @cis_proline_fraction end |
#non_proline_bonds ⇒ Object
Returns the value of attribute non_proline_bonds.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def non_proline_bonds @non_proline_bonds end |
#proline_bonds ⇒ Object
Returns the value of attribute proline_bonds.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def proline_bonds @proline_bonds end |
#trans_count ⇒ Object
Returns the value of attribute trans_count.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def trans_count @trans_count end |
#twisted_count ⇒ Object
Returns the value of attribute twisted_count.
21 22 23 |
# File 'lib/rafflesia/proteins/peptide_bond_summary_data.rb', line 21 def twisted_count @twisted_count end |