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